@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    color: #2c3e50;
    margin-top: 0;
}
/* Temel Sıfırlama */
.modern-navbar {
    background: #204870; /*#083664;*/
    backdrop-filter: blur(10px);
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    font-family: 'Inter', sans-serif;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none !important;
    color: #FFF;
    margin-right: 100px;
}

.nav-logo span { color: #4361ee; }

/* Menü Grubu */
.nav-menu {
    display: flex;
    gap: 120px;
}

/* Dropdown Ana Kutu */
.nav-item-dropdown {
    position: relative;
    padding: 25px 0; /* Fare takibi için boşluk */
}

/* Tetikleyici Başlık (Grade 1 yazısı) */
.drop-trigger {
    font-weight: 600;
    color: #FFF;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.05rem;
}

.drop-trigger:hover {
    color: #333;
}

/* Açılır Menü Paneli */
.drop-menu {
    position: absolute;
    top: 100%; /* Tetikleyicinin hemen altından başlar */
    left: 0;
    background: #ffffff;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 15px;
    
    /* Gizleme ve Efekt */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Hover Durumunda Göster */
.nav-item-dropdown:hover .drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Alt Linkler */
.drop-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drop-link {
    width: 240px;
    text-decoration: none !important;
    color: #555;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s;
}

.drop-link:hover {
    background-color: #f0f3ff;
    color: #4361ee;
    padding-left: 20px; /* Modern kayma efekti */
}
.main-content {
    max-width: 1200px;
    margin:40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
}

/* Kartın tamamını kapsayan link */
.card-link {
    text-decoration: none !important;
    display: block;
    color: inherit;
}



.hero-section {
    text-align: center;
    padding: 5px 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.hero-section h1 {
    color: white;
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.main-content h2 {
    text-align: center;
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 600;
}

.operation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.op-button {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    font-size: 1.2em;
    font-weight: 600;
    color: white;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.op-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.op-button:hover::before {
    width: 300px;
    height: 300px;
}

.op-button:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(52, 152, 219, 0.4);
}

.grade {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}


.op-button .symbol {
    display: block;
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.op-addition {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.op-addition:hover {
    box-shadow: 0 16px 32px rgba(46, 204, 113, 0.4);
}

.op-subtraction {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.op-subtraction:hover {
    box-shadow: 0 16px 32px rgba(231, 76, 60, 0.4);
}

.op-multiplication {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.op-multiplication:hover {
    box-shadow: 0 16px 32px rgba(243, 156, 18, 0.4);
}

.op-division {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.3);
}

.op-division:hover {
    box-shadow: 0 16px 32px rgba(26, 188, 156, 0.4);
}

.main-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #bdc3c7, transparent);
    margin: 60px 0;
}

.section-title-index {
    text-align: center;
    font-size: 2em;
    color: #2c3e50;
    padding-bottom: 20px;
    margin-bottom: 40px;
    border-bottom: 3px solid #3498db;
    font-weight: 600;
    position: relative;
}

.section-title-index::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #2ecc71;
}

.features-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.features-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-section li {
    padding: 20px 20px 20px 60px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.8;
    font-size: 1.05em;
}

.features-section li::before {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.features-section li:nth-child(2) {
    border-left-color: #2ecc71;
}

.features-section li:nth-child(2)::before {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.features-section li:nth-child(3) {
    border-left-color: #f39c12;
}

.features-section li:nth-child(3)::before {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.features-section li:nth-child(4) {
    border-left-color: #1abc9c;
}

.features-section li:nth-child(4)::before {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.features-section li:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
}

.features-section strong {
    color: #2c3e50;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .main-content {
        margin: 20px;
        padding: 20px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1.1em;
    }

    .operation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-section {
        padding: 20px;
    }

    .features-section li {
        padding: 15px 15px 15px 50px;
        font-size: 0.95em;
    }
}
/* --- KAYAN BAŞLIK STİLLERİ (CSS MARQUEE) --- */

.scrolling-title-container {
    width: 100%;
    margin: 10px 0 20px 0;
    overflow: hidden; /* Metnin sadece bu kutu içinde görünmesini sağlar */
    white-space: nowrap; /* Metnin tek bir satırda kalmasını sağlar */
    position: relative;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.scrolling-title {
    display: inline-block;
    font-size: 1.4em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tertiary-color, #f1c40f); /* Sarımsı Turuncu (Multiplication renginden) */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    
    /* Animasyonu uygula */
    animation: scroll-left 30s linear infinite;
    padding-left: 100%; /* Başlangıçta metnin ekranın sağından gelmesini sağlar */
}

/* Kayan yazı animasyonu tanımı */
@keyframes scroll-left {
    0% {
        transform: translateX(0%); /* Başlangıç konumu */
    }
    100% {
        transform: translateX(-100%); /* Bitir (kendi genişliğinin %100'ü kadar kayar) */
    }
}

/* Mobil cihazlarda boyutu küçültelim */
@media (max-width: 768px) {
    .scrolling-title {
        font-size: 1em;
        /* Daha yavaş kaysın */
        animation: scroll-left 45s linear infinite; 
    }
}

/* Masaüstü cihazlarda üstüne gelince menüyü göster */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Boşluk kalmasın diye */
        animation: fadeIn 0.3s; /* Hafif bir yumuşak geçiş efekti */
    }
}

/* Yumuşak açılış efekti */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 2. ANA SAYFA TARZI DERİNLİKLİ ANA KUTU */
.content-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
}

/* 3. HERO SECTION (MAVİ GRADIENT VE GÖLGE) */
.page-header {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.lead-text {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
}

/* 4. MODERN KARTLAR (ANA SAYFA LİSTE STİLİ) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid #2ecc71; /* Toplama Yeşili */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
}

.features-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.features-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-section li {
    padding: 20px 20px 20px 60px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #2ecc71;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.8;
    font-size: 1.05em;
}

.features-section li::before {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.features-section li:nth-child(2) {
    border-left-color: #d24233;
}

.features-section li:nth-child(2)::before {
    background: linear-gradient(135deg, #d24233 0%, #d24233 100%);
}

.features-section li:nth-child(3) {
    border-left-color: #f39c12;
}

.features-section li:nth-child(3)::before {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.features-section li:nth-child(4) {
    border-left-color: #1abc9c;
}

.features-section li:nth-child(4)::before {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.features-section li:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
}

.features-section strong {
    color: #2c3e50;
    font-size: 1.1em;
}

/* 5. ÖRNEK GÖRSEL ALANI */
.sample-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sample-image-placeholder {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    margin-bottom: 35px; /* Butonlar için boşluk */
}

/* 6. ANA SAYFA BUTON ESTETİĞİ (RIPPLE VE ANIMASYON) */
.sample-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

.sample-btn {
    position: relative;
    overflow: hidden;
    padding: 18px 35px;
    border-radius: 16px;
    font-size: 1.2em;
    font-weight: 600;
    color: white !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Hover Efekti: Yukarı Kayma */
.sample-btn:hover {
    transform: translateY(-8px);
}

/* Işıltı (Ripple) Efekti */
.sample-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.sample-btn:hover::before {
    width: 400px;
    height: 400px;
}

/* Renk Geçişleri */
.download-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.create-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

footer {
    background-color: #2c3e50; /* Koyu modern bir gri/mavi */
    color: white;
    padding: 40px 0 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    margin: 20px;
    min-width: 150px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #3e4f5f;
    font-size: 0.9rem;
}

/* Kartların dizileceği ızgara (Grid) yapısı */
.worksheet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);/*repeat(auto-fill, minmax(250px, 1fr));*/
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tabletler için (Ekran 1024px'den küçükse 3 tane göster) */
@media (max-width: 1024px) {
    .worksheet-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Telefonlar için (Ekran 600px'den küçükse 1 tane göster) */
@media (max-width: 600px) {
    .worksheet-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Ana Kart Stili */
.worksheet-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Kartın üzerine gelince (Hover) efekti */
.worksheet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    border-color: #3498db;
}

/* Resim Alanı */
.card-image {
    position: relative;
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.card-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Resmin üzerindeki "Grade" etiketi */
.card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Kart İçeriği */
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Buton Stili */
.btn-view {
    display: block;
    text-align: center;
    background: #fff;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-view:hover {
    background: #3498db;
    color: #fff;
}

/* MOBİL UYUM KISMI TELEFON VE TABLERLER */
/* --- RESPONSIVE OPTIMIZATION --- */

/* 1. Tablet ve Küçük Laptoplar (1024px ve altı) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 40px; /* Menü aralarını daralt */
    }

    .main-content, .content-wrapper {
        margin: 20px auto;
        padding: 25px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }
}

/* 2. Akıllı Telefonlar (768px ve altı) */
@media (max-width: 768px) {
    /* Navbar'ı mobilde dikey veya gizlenebilir yapmak yerine basitçe sığdırıyoruz */
    .modern-navbar {
        height: auto;
        padding: 10px 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-logo {
        margin-right: 0;
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Kahraman Bölümü (Hero Section) */
    .hero-section h1 {
        font-size: 1.8em;
    }

    .tagline {
        font-size: 1rem;
    }

    /* Grid Yapıları: Paylaştığın kodda zaten vardı ama sağlamlaştırıyoruz */
    .operation-grid, .features-grid, .worksheet-grid {
        grid-template-columns: 1fr !important; /* Mobilde her zaman tek sütun */
        gap: 15px;
    }

    /* Kartların içindeki resimlerin taşmasını önle */
    .worksheet-card {
        max-width: 100%;
    }

    /* Butonları mobilde daha kolay tıklanabilir (büyük) yap */
    .op-button, .sample-btn {
        padding: 25px 15px;
        font-size: 1.1em;
    }

    .sample-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* 3. Çok Küçük Ekranlar (480px ve altı) */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5em;
    }

    .scrolling-title {
        font-size: 0.9em;
    }

    .features-section li {
        padding: 15px 10px 15px 45px;
        font-size: 0.9rem;
    }
    
    .features-section li::before {
        width: 22px;
        height: 22px;
        font-size: 0.8em;
        left: 10px;
    }
}
/* MOBİL UYUM KISMI SONU TELEFON VE TABLERLER */