:root {
    --primary-color: #0D9488; /* Teal 600 - Güven veren, sakinleştirici */
    --primary-hover: #0F766E;
    --bg-color: #F8FAFC;
    --surface-color: #FFFFFF;
    --text-main: #334155;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Tag colors */
    --tag-student-bg: #E0F2FE;
    --tag-student-text: #0284C7; /* Soft Blue */
    --tag-parent-bg: #FEF3C7;
    --tag-parent-text: #D97706; /* Warm Amber */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Top Announcement Banner */
.top-announcement-banner {
    background: linear-gradient(90deg, #1E1B4B, #312E81);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 100;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.top-announcement-banner .banner-link {
    color: #FCD34D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-announcement-banner .banner-link:hover {
    color: #FDE68A;
    text-decoration: underline;
}

/* Layout */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.app-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px -10px rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.header-top {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image-container {
    height: 140px; /* 100px'den 140px'e büyütüldü */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-logo {
    height: 100%;
    width: auto; /* Genişliği orijinal orana göre otomatik ayarla */
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); /* Arka plan kutusu yerine logoya direkt zarif bir gölge */
}

.logo-area h1 {
    font-size: 2.8rem; /* 2.2rem'den 2.8rem'e devasa büyütüldü */
    font-weight: 800;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
}

.infinity-icon {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.1em;
    transform: scaleX(1.3) scaleY(1.1); /* "00" hissini vermek için hafif enine genişletme */
    margin: 0 4px;
    font-family: Arial, sans-serif; /* Temel font sonsuzluk işareti için daha net */
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.3rem; /* 1.1rem'den 1.3rem'e büyütüldü */
    font-weight: 500;
}

/* Search */
.search-container {
    position: relative;
    width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: var(--bg-color);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    background-color: var(--surface-color);
}

/* Main Content Area */
.app-main {
    display: flex;
    gap: 2rem;
    flex: 1;
}

/* Sidebar */
.categories-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    padding: 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-item i {
    width: 20px;
    text-align: center;
}

.category-item:hover {
    background-color: rgba(13, 148, 136, 0.05);
    color: var(--primary-color);
}

.category-item.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Results */
.results-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.results-count {
    background-color: #CCFBF1;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Card Styling */
.card {
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem; /* 1.5rem'den 1.75rem'e çıkarılarak ferahlatıldı */
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* İç boşluklar artırıldı */
    animation: fadeSlideUp 0.5s ease backwards;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(13, 148, 136, 0.1), 0 8px 10px -6px rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.2);
}

.card.expanded {
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.3);
}

.card.expanded .toggle-icon {
    transform: rotate(180deg);
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-brand-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.card-brand-footer img {
    height: 22px; /* Orantılı, ne kaba ne çok küçük */
    width: auto;
    object-fit: contain;
}

.card-brand-footer span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.card-header {
    border-bottom: 1px solid transparent;
    padding-bottom: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.3s ease;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin: -0.5rem; /* Paddingi dışarı taşırmak için */
}

.card-header:hover {
    background-color: rgba(13, 148, 136, 0.03);
}

.card.expanded .card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeSlideUp 0.3s ease backwards;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9375rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid #CBD5E1;
}

.card-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    font-size: 0.95rem; /* Biraz büyütüldü */
    color: var(--text-main);
    line-height: 1.7; /* Sıkışık görünümü gidermek için satır aralığı artırıldı */
}

.action-box {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.action-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.action-header.student {
    color: var(--tag-student-text);
}
.action-header.parent {
    color: var(--tag-parent-text);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    border: 1px dashed #CBD5E1;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94A3B8;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-main {
        flex-direction: column;
    }
    
    .categories-sidebar {
        width: 100%;
    }
    
    .category-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-item {
        white-space: nowrap;
        width: 100%;
    }
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-color), #2DD4BF);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}

.whatsapp-share-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.2);
}

.whatsapp-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(37, 211, 102, 0.4);
}

/* Coaching Elements */
.coaching-banner {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 1px solid #FDE68A;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    gap: 1.5rem;
}

.coaching-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #92400E;
    text-align: left;
}

.coach-profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FDE68A;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.coaching-banner strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.coaching-banner p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.coaching-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.coaching-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.coaching-action-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.2);
}

.coaching-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }
    
    .app-main {
        flex-direction: column;
    }
    
    .categories-sidebar {
        width: 100%;
        margin-bottom: 1rem;
    }

    .category-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-item {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }

    .top-announcement-banner {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .coaching-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .coaching-banner .banner-content {
        flex-direction: column;
    }
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .logo-area {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-container {
        width: 100%;
    }
}

/* Freemium: Lock Overlay */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
}

.lock-overlay-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 90%;
    width: 380px;
    border: 2px solid var(--warning-color);
    animation: fadeSlideUp 0.3s ease;
}

.lock-big-icon {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.lock-overlay-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.lock-overlay-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.buy-now-btn {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.6);
}

/* Funnel: Upsell Box */
.upsell-box {
    margin-top: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(234, 179, 8, 0.05));
    border: 1px dashed var(--warning-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    transition: transform 0.3s ease;
}

.upsell-box:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.08));
}

.upsell-icon {
    font-size: 2rem;
    color: var(--warning-color);
}

.upsell-content {
    flex: 1;
    min-width: 250px;
}

.upsell-content strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.upsell-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.upsell-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.upsell-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* Funnel: Sticky Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: floatPulse 2s infinite;
    transition: all 0.3s ease;
}

.floating-cta:hover {
    background-color: #128C7E;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
    animation: none;
}

.floating-cta i {
    font-size: 1.5rem;
}

@keyframes floatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.8rem 1.25rem;
        font-size: 1rem;
    }
    .floating-cta span {
        display: inline; 
    }
    .upsell-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .upsell-btn {
        width: 100%;
        justify-content: center;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
