/* ===========================================
   RESPONSIVE STYLES FOR NAF ACADEMY
   =========================================== */

/* Mobile First Approach - Base styles for mobile */

/* === FORMS === */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

@media (min-width: 768px) {
    .form-label {
        font-size: 15px;
    }
}

/* Form Grid Layouts */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .form-row {
        gap: 24px;
    }
}

/* === BUTTONS === */
.btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-full-mobile {
    width: 100%;
}

@media (min-width: 640px) {
    .btn-full-mobile {
        width: auto;
    }
}

/* === IMAGES === */
img {
    max-width: 100%;
    height: auto;
}

.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* === VIDEO PLAYERS === */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === CARDS === */
.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .card {
        padding: 24px;
    }
}

/* === GRID LAYOUTS === */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .responsive-grid {
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.responsive-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .responsive-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .responsive-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* === MODALS === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
}

@media (min-width: 768px) {
    .modal-content {
        padding: 32px;
    }
}

/* === NAVIGATION === */
.nav-mobile-only {
    display: block;
}

.nav-desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .nav-mobile-only {
        display: none;
    }
    .nav-desktop-only {
        display: block;
    }
}

/* === TEXT SIZES === */
.text-responsive-sm {
    font-size: 14px;
}

.text-responsive-base {
    font-size: 16px;
}

.text-responsive-lg {
    font-size: 18px;
}

@media (min-width: 768px) {
    .text-responsive-sm {
        font-size: 15px;
    }
    .text-responsive-base {
        font-size: 17px;
    }
    .text-responsive-lg {
        font-size: 20px;
    }
}

/* === SPACING === */
.section-padding {
    padding: 32px 16px;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 48px 24px;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 64px 32px;
    }
}

/* === CONTAINERS === */
.container-responsive {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container-responsive {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        padding: 0 32px;
    }
}

/* === HIDE/SHOW UTILITIES === */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}

.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .show-mobile {
        display: none;
    }
}

/* === OVERFLOW HANDLING === */
.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* === TOUCH TARGETS === */
/* Ensure all interactive elements are at least 44x44px for touch */
button,
a,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT STYLES === */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

