/* Qoreta Frontend Styles */

/* Common Box Styles */
.smart-box {
    position: relative;
    margin: 2.5rem 0;
    border-radius: 12px;
    border: 1px solid;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.smart-box:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.smart-box__accent-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.smart-box__content {
    padding: 1.5rem 2rem 1.5rem 2.5rem;
}
.smart-box__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.smart-box__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    flex-shrink: 0;
}
.smart-box__icon-wrapper svg {
    width: 22px;
    height: 22px;
}
.smart-box__title-group {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.smart-box__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.smart-box__subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
}
.smart-box__text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}
.smart-box__list {
    margin: 0.5rem 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.smart-box__list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}
.smart-box__list-bullet {
    margin-top: 0.4rem;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid;
}

/* 1. Pro Tip (Amber) */
.smart-box--pro-tip { background-color: #fef3c7; border-color: #fbbf24; }
.smart-box--pro-tip .smart-box__accent-bar, .smart-box--pro-tip .smart-box__icon-wrapper { background-color: #fde68a; }
.smart-box--pro-tip .smart-icon { color: #d97706; }
.smart-box--pro-tip .smart-box__title { color: #92400e; }
.smart-box--pro-tip .smart-box__subtitle { color: #b45309; }
.smart-box--pro-tip .smart-box__text, .smart-box--pro-tip .smart-box__list-item { color: #451a03; }

/* 2. Fun Fact (Violet) */
.smart-box--fun-fact { background-color: #ede9fe; border-color: #a78bfa; }
.smart-box--fun-fact .smart-box__accent-bar, .smart-box--fun-fact .smart-box__icon-wrapper { background-color: #ddd6fe; }
.smart-box--fun-fact .smart-icon { color: #7c3aed; }
.smart-box--fun-fact .smart-box__title { color: #5b21b6; }
.smart-box--fun-fact .smart-box__subtitle { color: #6d28d9; }
.smart-box--fun-fact .smart-box__text, .smart-box--fun-fact .smart-box__list-item { color: #2e1065; }

/* 3. Common Mistake (Rose) */
.smart-box--mistake { background-color: #ffe4e6; border-color: #fb7185; }
.smart-box--mistake .smart-box__accent-bar, .smart-box--mistake .smart-box__icon-wrapper { background-color: #fecdd3; }
.smart-box--mistake .smart-icon { color: #e11d48; }
.smart-box--mistake .smart-box__title { color: #9f1239; }
.smart-box--mistake .smart-box__subtitle { color: #be123c; }
.smart-box--mistake .smart-box__text, .smart-box--mistake .smart-box__list-item { color: #4c0519; }

/* 4. Key Takeaways (Emerald) */
.smart-box--takeaways { background-color: #d1fae5; border-color: #34d399; }
.smart-box--takeaways .smart-box__accent-bar, .smart-box--takeaways .smart-box__icon-wrapper { background-color: #a7f3d0; }
.smart-box--takeaways .smart-icon { color: #047857; }
.smart-box--takeaways .smart-box__title { color: #065f46; }
.smart-box--takeaways .smart-box__subtitle { color: #047857; }
.smart-box--takeaways .smart-box__text, .smart-box--takeaways .smart-box__list-item { color: #022c22; }
.smart-box--takeaways .smart-box__list-bullet { border-color: #10b981; }

/* 5. Real World (Blue) */
.smart-box--real-world { background-color: #eff6ff; border-color: #60a5fa; }
.smart-box--real-world .smart-box__accent-bar, .smart-box--real-world .smart-box__icon-wrapper { background-color: #dbeafe; }
.smart-box--real-world .smart-icon { color: #2563eb; }
.smart-box--real-world .smart-box__title { color: #1e40af; }
.smart-box--real-world .smart-box__subtitle { color: #1d4ed8; }
.smart-box--real-world .smart-box__text, .smart-box--real-world .smart-box__list-item { color: #172554; }

/* 6. Case Study (Indigo) */
.smart-box--case-study { background-color: #eef2ff; border-color: #818cf8; }
.smart-box--case-study .smart-box__accent-bar, .smart-box--case-study .smart-box__icon-wrapper { background-color: #e0e7ff; }
.smart-box--case-study .smart-icon { color: #4f46e5; }
.smart-box--case-study .smart-box__title { color: #3730a3; }
.smart-box--case-study .smart-box__subtitle { color: #4338ca; }
.smart-box--case-study .smart-box__text, .smart-box--case-study .smart-box__list-item { color: #1e1b4b; }

/* 7. Definition (Slate) */
.smart-box--definition { background-color: #f8fafc; border-color: #94a3b8; }
.smart-box--definition .smart-box__accent-bar, .smart-box--definition .smart-box__icon-wrapper { background-color: #f1f5f9; }
.smart-box--definition .smart-icon { color: #475569; }
.smart-box--definition .smart-box__title { color: #1e293b; }
.smart-box--definition .smart-box__subtitle { color: #334155; }
.smart-box--definition .smart-box__text, .smart-box--definition .smart-box__list-item { color: #0f172a; }

/* FAQ Accordions using native details/summary */
.smart-faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2.5rem 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.smart-faq {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.smart-faq:hover {
    border-color: #d1d5db;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}
.smart-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background-color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
    list-style: none; /* Hide default arrow */
    letter-spacing: -0.01em;
}
.smart-faq summary::-webkit-details-marker {
    display: none; /* Hide default arrow webkit */
}
.smart-faq summary .smart-faq-icon {
    flex-shrink: 0;
    color: var(--smart-primary, #6366f1) !important;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}
.smart-faq[open] summary .smart-faq-icon {
    transform: rotate(180deg);
}
.smart-faq-content {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background-color: #f8fafc;
}
.smart-faq-content p {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.7;
    margin: 0;
}

/* YouTube Wrapper */
.smart-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 0.75rem;
}
.smart-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
