/* ===== TEST PAGE STYLES ===== */
.main-content {
    padding-top: 97.5px;
    min-height: 80vh;
    width: 100%; /* Ensure full width */
    max-width: 100vw; /* Use viewport width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.info-box {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Don't exceed viewport */
    box-sizing: border-box; /* Include padding in width calculation */
}

.test-section {
    margin: 2rem 0;
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Don't exceed viewport */
    box-sizing: border-box; /* Include padding in width calculation */
}

.test-group {
    margin: 1rem 0;
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Don't exceed viewport */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    max-width: 100vw; /* Use viewport width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    margin: 20px;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box; /* Include padding in width calculation */
}

.modal-header {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%); /* Daha açık ve okunabilir renkler */
    color: var(--krem-beyaz);
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Don't exceed viewport */
    box-sizing: border-box; /* Include padding in width calculation */
}

.modal-header h2 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Başvuru Form Styles */
.basvuru-form {
    padding: 2rem;
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Don't exceed viewport */
    box-sizing: border-box; /* Include padding in width calculation */
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Don't exceed viewport */
    box-sizing: border-box; /* Include padding in width calculation */
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: var(--bordo-perde);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        width: 95%;
        max-height: 95vh;
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Don't exceed viewport */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .basvuru-form {
        padding: 1.5rem;
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Don't exceed viewport */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Don't exceed viewport */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .date-inputs {
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Don't exceed viewport */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Don't exceed viewport */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .btn-submit,
    .btn-cancel {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box; /* Include padding in width calculation */
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5px;
        width: 98%;
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .modal-header {
        padding: 1rem;
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Don't exceed viewport */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .basvuru-form {
        padding: 1rem;
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Don't exceed viewport */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .form-section h3 {
        font-size: 1.125rem;
    }
    
    .date-inputs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Don't exceed viewport */
        box-sizing: border-box; /* Include padding in width calculation */
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .mobile-menu,
    .hero-video,
    .hero-overlay {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: white !important;
        color: black !important;
    }
    
    .hero-title .title-main,
    .hero-title .title-subtitle {
        color: black !important;
        text-shadow: none !important;
    }
    
    .hero-description {
        color: black !important;
    }
    
    .btn-hero {
        display: none !important;
    }
    
    .about,
    .services,
    .academy,
    .portfolio,
    .blog,
    .contact {
        padding: 1rem 0;
        background: white !important;
        color: black !important;
    }
    
    .section-title {
        color: black !important;
    }
    
    .section-subtitle {
        color: black !important;
    }
    
    .blog-card,
    .program-item,
    .stat-item {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .footer {
        background: white !important;
        color: black !important;
        border-top: 1px solid #ccc !important;
    }
    
    .footer-links a {
        color: black !important;
    }
    
    .social-links {
        display: none !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* .hero-container removed - no longer used */
    
    /* Scroll indicator kaldırıldı */
}

/* ===== FOCUS VISIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: no-preference) {
    .btn-primary:focus,
    .btn-hero:focus,
    .btn-academy:focus,
    .btn-portfolio:focus,
    .btn-blog:focus,
    .btn-submit:focus,
    .nav-link:focus,
    .filter-btn:focus,
    .lang-option:focus,
    .mobile-nav-link:focus,
    .mobile-lang-btn:focus {
        outline: 2px solid var(--altin-isik);
        outline-offset: 2px;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 2px solid var(--altin-isik);
        outline-offset: 2px;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Logo styles moved to layout.css */
}
