/* ============================================================================
   SILVER SUITS - MODERN DESIGN SYSTEM ENHANCEMENTS
   Enhanced animations, improved layouts, and modern micro-interactions
   ============================================================================ */

/* ============================================================================
   ANIMATIONS & KEYFRAMES
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes imageZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideInNumber {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================================
   ENHANCED SECTION ANIMATIONS
   ============================================================================ */

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-actions {
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero-scroll {
    animation: fadeInDown 0.8s ease-out 0.6s both;
}

/* Stagger animations for category cards */
.category-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.category-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.category-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.category-card:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Animate process steps */
.process-grid article {
    animation: slideInLeft 0.6s ease-out backwards;
}

.process-grid article:nth-child(1) { animation-delay: 0s; }
.process-grid article:nth-child(2) { animation-delay: 0.1s; }
.process-grid article:nth-child(3) { animation-delay: 0.2s; }
.process-grid article:nth-child(4) { animation-delay: 0.3s; }

.process-grid article span {
    transition: color 0.3s ease, transform 0.3s ease;
}

.process-grid article:hover span {
    color: #c0c0c0;
    transform: translateX(4px);
}

/* ============================================================================
   ENHANCED BUTTON & LINK INTERACTIONS
   ============================================================================ */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
    z-index: -1;
}

.btn-ghost:hover::before {
    transform: scaleX(1);
}

.btn-light:hover::before {
    transform: scaleX(1);
}

.text-link {
    transition: all 0.2s ease;
}

.text-link:hover {
    border-bottom-color: rgba(255,255,255,.7);
    color: #fff;
    transform: translateX(4px);
}

/* ============================================================================
   ENHANCED IMAGE GALLERIES
   ============================================================================ */

.lookbook-track figure {
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.lookbook-track figure:nth-child(1) { animation-delay: 0s; }
.lookbook-track figure:nth-child(2) { animation-delay: 0.1s; }
.lookbook-track figure:nth-child(3) { animation-delay: 0.15s; }
.lookbook-track figure:nth-child(4) { animation-delay: 0.2s; }
.lookbook-track figure:nth-child(5) { animation-delay: 0.25s; }
.lookbook-track figure:nth-child(6) { animation-delay: 0.3s; }

.lookbook-track figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.lookbook-track figure:hover::after {
    background: rgba(255,255,255, 0.08);
}

.lookbook-track img {
    transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.lookbook-track figure:hover img {
    transform: scale(1.1);
}

/* Modern image gallery with overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
    aspect-ratio: 1 / 1.2;
    animation: fadeInUp 0.6s ease-out backwards;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08) rotate(0.5deg);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================================================
   ENHANCED FORMS & INPUTS
   ============================================================================ */

input,
select,
textarea {
    transition: all 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
    box-shadow: inset 0 0 0 0 rgba(255,255,255,0);
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
    color: #555;
    transition: color 0.3s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: #777;
}

/* Modern form group styling */
.luxury-form label {
    transition: all 0.3s ease;
}

.luxury-form label:has(input:focus),
.luxury-form label:has(textarea:focus),
.luxury-form label:has(select:focus) {
    transform: translateY(-2px);
}

.luxury-form label:has(input:focus) > span,
.luxury-form label:has(textarea:focus) > span,
.luxury-form label:has(select:focus) > span {
    color: #fff;
    letter-spacing: 0.13em;
}

/* Enhanced upload field */
.upload-ui {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-ui::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.upload-ui:hover {
    border-color: #888;
    background: #131313;
}

.upload-ui:hover::before {
    transform: translateX(100%);
}

/* ============================================================================
   ENHANCED CARDS & PANELS
   ============================================================================ */

.booking-form {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.booking-form:hover {
    border-color: #4a4a4a;
}

.booking-aside {
    animation: slideInRight 0.6s ease-out;
}

.choice-card {
    transition: transform 0.2s ease;
}

.choice-card:hover {
    transform: translateY(-4px);
}

.choice-card-inner {
    box-shadow: 0 10px 30px rgba(0,0,0,0);
    transition: box-shadow 0.3s ease;
}

.choice-card:hover .choice-card-inner {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Status pill animations */
.status-pill {
    animation: slideInNumber 0.5s ease-out;
    transition: all 0.3s ease;
}

.status-pill:hover {
    transform: scale(1.05);
}

/* ============================================================================
   ENHANCED SECTION TRANSITIONS
   ============================================================================ */

.section {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out;
}

.section-intro {
    animation: fadeInUp 0.7s ease-out;
}

.section-intro p:last-child {
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

/* ============================================================================
   ENHANCED HERO SECTION
   ============================================================================ */

.hero::before {
    animation: fadeInUp 0.8s ease-out;
}

/* Parallax effect on scroll */
.hero {
    position: relative;
}

.category-card::before {
    will-change: transform;
}

/* ============================================================================
   SKELETON LOADERS
   ============================================================================ */

.skeleton {
    background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    margin-bottom: 8px;
}

.skeleton-image {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ============================================================================
   MODERN TYPOGRAPHY ANIMATIONS
   ============================================================================ */

h1, h2, h3 {
    transition: color 0.3s ease;
}

.eyebrow {
    animation: slideInLeft 0.6s ease-out;
    transition: color 0.3s ease;
}

/* ============================================================================
   ENHANCED HOVER STATES FOR RESPONSIVE
   ============================================================================ */

@media (hover: hover) {
    .category-card:hover::before {
        transform: scale(1.05);
    }

    .lookbook-track figure:hover {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    }

    .btn {
        box-shadow: 0 0 0 1px rgba(255,255,255,0);
    }

    .btn-ghost:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .btn-light:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
}

/* ============================================================================
   MODERNIZED ADMIN DASHBOARD STYLES
   ============================================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-card {
    border: 1px solid var(--line);
    background: var(--charcoal);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.dashboard-card:nth-child(1) { animation-delay: 0s; }
.dashboard-card:nth-child(2) { animation-delay: 0.1s; }
.dashboard-card:nth-child(3) { animation-delay: 0.2s; }
.dashboard-card:nth-child(4) { animation-delay: 0.3s; }

.dashboard-card:hover {
    border-color: #4a4a4a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-4px);
}

.dashboard-card-title {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.dashboard-card:hover .dashboard-card-title {
    color: #c0c0c0;
}

.dashboard-card-value {
    font-size: 2.2rem;
    font-family: var(--serif);
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.dashboard-card-stat {
    font-size: 0.78rem;
    color: #777;
}

/* Stats table enhancement */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    background: #0a0a0a;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    text-align: left;
    color: #999;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.stats-table td {
    border-bottom: 1px solid #1e1e1e;
    padding: 16px;
    color: #e0e0e0;
    transition: all 0.2s ease;
}

.stats-table tbody tr:hover {
    background: #131313;
}

.stats-table tbody tr:hover td {
    color: #fff;
}

/* ============================================================================
   IMPROVED RESPONSIVE ANIMATIONS
   ============================================================================ */

@media (max-width: 800px) {
    .hero-content {
        animation: fadeInUp 0.7s ease-out;
    }

    .category-card {
        animation: fadeInUp 0.5s ease-out !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        animation: fadeInUp 0.5s ease-out backwards !important;
    }

    /* Disable transform on mobile for better performance */
    .category-card::before {
        will-change: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .category-card::before,
    .lookbook-track img {
        transform: none !important;
    }
}

/* ============================================================================
   MODERN FORM FIELD DECORATIONS
   ============================================================================ */

.form-field-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.form-field-label {
    display: block;
    color: #f1f1f1;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.form-field-wrapper input:focus ~ .form-field-label,
.form-field-wrapper textarea:focus ~ .form-field-label {
    color: #fff;
    transform: translateY(-2px);
}

/* Input focus indicator */
.form-field-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, #c0c0c0, #d1d1d1);
    transition: width 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.form-field-wrapper input:focus ~ .form-field-indicator,
.form-field-wrapper textarea:focus ~ .form-field-indicator {
    width: 100%;
}

/* ============================================================================
   ENHANCED BOOKING LAYOUT
   ============================================================================ */

.booking-layout {
    animation: fadeInUp 0.6s ease-out;
}

.confirmation-card {
    animation: scaleIn 0.5s ease-out;
}

.confirmation-icon {
    animation: scaleIn 0.6s ease-out 0.2s both;
}

.tracking-code {
    animation: slideInDown 0.5s ease-out 0.3s both;
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   ENHANCED SECTION SPACING & RHYTHM
   ============================================================================ */

.section {
    scroll-margin-top: 100px;
}

/* Better visual separation */
.section + .section {
    position: relative;
}

.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ============================================================================
   LOADING & TRANSITION STATES
   ============================================================================ */

.loading {
    pointer-events: none;
    opacity: 0.6;
}

.transition-enter {
    animation: fadeInUp 0.4s ease-out;
}

.transition-exit {
    animation: fadeInDown 0.4s ease-out reverse;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    * {
        animation: none !important;
        transition: none !important;
    }
}
