/**
 * AerialMedia Page Card Components
 * Generic component system for full-page card layouts
 * Nordic Blue Theme - Flat Design
 *
 * NO GRADIENTS - Strictly prohibited per project requirements
 *
 * Used by: Subscribe, Login, Signup, and similar full-page card layouts
 */

/* =============================================================================
   PAGE CONTAINER - Full-height pages with dark background
   ============================================================================= */

.page-container {
    background: #0F172A;
    min-height: 100vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Mobile: Auto height to avoid black gap, content determines height */
@media (max-width: 768px) {
    .page-container {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
}

/* Modifier for minimal padding (subscribe, newsletter pages) */
.page-container--compact {
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .page-container--compact {
        padding-top: 0.5rem;
    }
}

/* =============================================================================
   FORM CARDS - White content cards
   ============================================================================= */

.page-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08),
                0 8px 10px -6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: pageCardFadeIn 0.5s ease-out;
}

/* Mobile: Keep rounded edges like auth pages */
@media (max-width: 768px) {
    .page-card {
        border-radius: 0.75rem;
    }
}

/* Extra small screens: Slightly smaller radius */
@media (max-width: 480px) {
    .page-card {
        border-radius: 0.75rem;
    }
}

/* =============================================================================
   MOBILE-OPTIMIZED CONTENT WRAPPER
   ============================================================================= */

.page-content-wrapper {
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .page-content-wrapper {
        padding: 0 0.5rem;
    }
}

/* =============================================================================
   INPUT GROUPS & FORM INPUTS
   ============================================================================= */

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .input-group {
        margin-bottom: 1.25rem;
    }
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #2563EB;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 20px;
    height: 20px;
}

.form-input:focus + .input-icon {
    color: #2563EB;
}

/* =============================================================================
   BUTTONS - Primary action buttons
   ============================================================================= */

.btn-primary {
    background: #2563EB;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-family: 'Space Grotesk', 'DM Sans', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1E40AF;
}

.btn-primary:active {
    background: #1E3A8A;
}

.btn-primary:disabled {
    background: #93C5FD;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: #2563EB;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-family: 'Space Grotesk', 'DM Sans', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #2563EB;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #E0F2FE;
    border-color: #1E40AF;
    color: #1E40AF;
}

/* =============================================================================
   SOCIAL BUTTONS
   ============================================================================= */

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
    color: #374151;
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    border-color: #2563EB;
    background: #F9FAFB;
    transform: translateY(-2px);
}

/* =============================================================================
   TYPOGRAPHY - Page headings (Fluid typography with clamp)
   ============================================================================= */

.page-title {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .page-title {
        margin-bottom: 1rem;
    }
}

.card-title {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1F2937;
    font-weight: 700;
    line-height: 1.2;
}

.page-subtitle {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 300;
    font-size: clamp(0.9375rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.card-subtitle {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #6B7280;
    font-weight: 300;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* =============================================================================
   ICON BADGES - Decorative icons in cards
   ============================================================================= */

.icon-badge {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-badge:hover {
    background: rgba(37, 99, 235, 0.2);
}

@media (max-width: 480px) {
    .icon-badge {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }

    .icon-badge svg {
        width: 32px;
        height: 32px;
    }
}

.icon-badge--success {
    width: 100px;
    height: 100px;
    background: rgba(34, 197, 94, 0.1);
}

/* =============================================================================
   INFO BOXES - Tips, warnings, messages
   ============================================================================= */

.tips-box {
    background: rgba(37, 99, 235, 0.05);
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.security-tips {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .security-tips {
        padding: 1rem;
        margin-top: 1.5rem;
    }
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.875rem;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-icon {
    width: 20px;
    height: 20px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =============================================================================
   SHOWCASE CARDS - Tour cards for pages
   ============================================================================= */

.tour-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .tour-showcase {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
}

.tour-card-mini {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.tour-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.tour-card-mini img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

@media (max-width: 480px) {
    .tour-card-mini img {
        height: 100px;
    }
}

.tour-card-mini .content {
    padding: 0.75rem;
    color: white;
}

.tour-card-mini .title {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.tour-card-mini .location {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 300;
}

/* =============================================================================
   FEATURE LISTS - Benefits and features
   ============================================================================= */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 300;
}

@media (max-width: 480px) {
    .feature-list {
        margin: 1.5rem 0;
    }

    .feature-list li {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
}

.check-icon {
    width: 24px;
    height: 24px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =============================================================================
   BENEFITS SECTION - Checkmark lists
   ============================================================================= */

.benefits {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .benefits {
        margin-top: 1.5rem;
    }
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.benefit-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #93C5FD;
    flex-shrink: 0;
}

.benefit-item span {
    font-family: 'Inter', -apple-system, sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    .benefit-item span {
        font-size: 0.8125rem;
    }
}

/* =============================================================================
   TESTIMONIALS
   ============================================================================= */

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =============================================================================
   ALERTS & MESSAGES
   ============================================================================= */

.alert-error {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.alert-success {
    background: #D1FAE5;
    border: 1px solid #6EE7B7;
    color: #065F46;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.alert-info {
    background: #E0F2FE;
    border: 1px solid #93C5FD;
    color: #1E40AF;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* =============================================================================
   LINKS & INTERACTIVE ELEMENTS
   ============================================================================= */

.link {
    color: #2563EB;
    font-family: 'Space Grotesk', 'DM Sans', -apple-system, sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.link:hover {
    color: #1E40AF;
    text-decoration: underline;
}

/* =============================================================================
   EMAIL ANIMATION - For success pages
   ============================================================================= */

.email-animation {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.email-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.email-icon {
    width: 80px;
    height: 80px;
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.text-center {
    text-align: center;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* =============================================================================
   ANIMATIONS - Subtle, professional animations
   ============================================================================= */

@keyframes pageCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =============================================================================
   MOBILE-FIRST GRID ADJUSTMENTS
   ============================================================================= */

/* On mobile, make the grid single column with proper spacing */
@media (max-width: 768px) {
    .page-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Card padding adjustments for mobile */
    .page-card-padding {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-card-padding {
        padding: 1.25rem;
    }
}

@media (min-width: 769px) {
    .page-card-padding {
        padding: 2rem 2.5rem;
    }
}

/* =============================================================================
   NORDIC BLUE COLOR PALETTE REFERENCE
   ============================================================================= */

/*
Primary: #2563EB
Secondary: #93C5FD
Dark: #1E40AF
Sky: #E0F2FE
Background: #0F172A
*/
