/* ===================================
   PREMIUM UI/UX ENHANCEMENTS
   High-end design system
   =================================== */

/* Form Success/Error Messages */
.form-message {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.error-message {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
}

.message-icon {
    font-size: 48px;
    line-height: 1;
}

.message-content h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.message-content p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
}

/* Enhanced Buttons */
.btn-premium,
button[type="submit"],
.submit-btn,
.cta-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6B00 0%, #FDB714 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.btn-premium:hover,
button[type="submit"]:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 0, 0.4);
}

.btn-premium:active,
button[type="submit"]:active {
    transform: translateY(0);
}

/* Button Ripple Effect */
.btn-premium::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-premium:active::before,
button[type="submit"]:active::before {
    width: 300px;
    height: 300px;
}

/* Premium Cards with Glassmorphism */
.premium-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* Enhanced Typography */
.premium-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    background: linear-gradient(135deg, #1a2332 0%, #2C5F8D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Image Hover Effects */
.premium-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.premium-image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-image-wrapper:hover img {
    transform: scale(1.1);
}

.premium-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.3) 0%, rgba(253, 183, 20, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-image-wrapper:hover::after {
    opacity: 1;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    display: none;
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* Add padding to body to prevent content being hidden */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: #FF6B00;
}

.nav-item.active i {
    transform: scale(1.2);
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B00, #FDB714);
    border-radius: 0 0 3px 3px;
    transition: width 0.3s ease;
}

.nav-item.active::before {
    width: 40px;
}

/* Touch Optimization */
@media (max-width: 768px) {

    /* Larger touch targets */
    button,
    a.btn,
    .cta-button {
        min-height: 48px;
        min-width: 48px;
    }

    /* Better spacing */
    .form-group {
        margin-bottom: 20px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 14px;
    }
}

/* Smooth Page Transitions */
.page-transition {
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Premium Gradients */
.gradient-text {
    background: linear-gradient(135deg, #FF6B00 0%, #FDB714 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #FF6B00 0%, #FDB714 100%);
}

/* Micro-interactions */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(255, 107, 0, 0.5);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}