/* ========================================
   MODERN ORDER CARDS - UGC Italia
   Design moderno e curato per le card degli ordini
   ======================================== */

/* Card Container */
.modern-order-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 1px 3px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modern-order-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(134, 57, 254, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-order-card:hover .card-image {
    transform: scale(1.08);
}

/* Overlay con effetto hover */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(134, 57, 254, 0) 0%, 
        rgba(134, 57, 254, 0.75) 70%,
        rgba(134, 57, 254, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-order-card:hover .card-overlay {
    opacity: 1;
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    color: #8639FE;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(10px);
}

.modern-order-card:hover .view-details-btn {
    transform: translateY(0);
}

.view-details-btn:hover {
    background: #8639FE;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(134, 57, 254, 0.4);
}

.view-details-btn svg {
    width: 20px;
    height: 20px;
}

/* Card Content */
.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    min-height: 50px;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: #8639FE;
}

.card-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

/* Modern Badges */
.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.badge svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.badge:hover svg {
    transform: scale(1.1);
}

/* Badge Duration */
.badge-duration {
    background: linear-gradient(135deg, #f0e7ff 0%, #e5d4ff 100%);
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.badge-duration:hover {
    background: linear-gradient(135deg, #e5d4ff 0%, #ddd6fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* Badge Videos */
.badge-videos {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.badge-videos:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Badge Price */
.badge-price {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 1px solid #6ee7b7;
    font-weight: 700;
}

.badge-price:hover {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .modern-order-card {
        border-radius: 14px;
    }
    
    .card-content {
        padding: 18px;
    }
    
    .card-title {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .modern-order-card {
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .card-title {
        font-size: 16px;
        min-height: auto;
    }
    
    .card-description {
        font-size: 13px;
        min-height: auto;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .view-details-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-order-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* Stagger animation for multiple cards */
.modern-order-card:nth-child(1) { animation-delay: 0.05s; }
.modern-order-card:nth-child(2) { animation-delay: 0.1s; }
.modern-order-card:nth-child(3) { animation-delay: 0.15s; }
.modern-order-card:nth-child(4) { animation-delay: 0.2s; }
.modern-order-card:nth-child(5) { animation-delay: 0.25s; }
.modern-order-card:nth-child(6) { animation-delay: 0.3s; }
.modern-order-card:nth-child(7) { animation-delay: 0.35s; }
.modern-order-card:nth-child(8) { animation-delay: 0.4s; }

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .modern-order-card {
        background: #1f2937;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                    0 1px 3px rgba(0, 0, 0, 0.4);
    }
    
    .modern-order-card:hover {
        box-shadow: 0 12px 32px rgba(134, 57, 254, 0.3),
                    0 4px 12px rgba(0, 0, 0, 0.4);
    }
    
    .card-title,
    .card-title a {
        color: #f9fafb;
    }
    
    .card-description {
        color: #9ca3af;
    }
    
    .card-badges {
        border-top-color: #374151;
    }
}

/* ========================================
   MODERN WELCOME BANNER
   Banner di benvenuto soft e moderno
   ======================================== */

.modern-welcome-banner {
    position: relative;
    background: linear-gradient(135deg, #f0e7ff 0%, #e5d4ff 50%, #d4bbff 100%);
    border-radius: 20px;
    padding: 40px 48px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(134, 57, 254, 0.12),
                0 2px 8px rgba(134, 57, 254, 0.08);
}

.welcome-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
}

.welcome-icon {
    font-size: 64px;
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40%, 60% { transform: rotate(0deg); }
}

.welcome-text {
    flex: 1;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #5b21b6;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 18px;
    color: #7c3aed;
    margin: 0;
    font-weight: 500;
}

.welcome-subtitle strong {
    font-weight: 700;
    color: #6d28d9;
}

.welcome-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.decoration-circle-1 {
    width: 200px;
    height: 200px;
    top: -60px;
    right: -40px;
    animation: float-slow 6s ease-in-out infinite;
}

.decoration-circle-2 {
    width: 140px;
    height: 140px;
    top: 50%;
    right: 10%;
    animation: float-slow 8s ease-in-out infinite reverse;
}

.decoration-circle-3 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    right: 25%;
    animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Responsive Welcome Banner */
@media (max-width: 768px) {
    .modern-welcome-banner {
        padding: 32px 24px;
        margin-bottom: 24px;
    }
    
    .welcome-content {
        gap: 16px;
    }
    
    .welcome-icon {
        font-size: 48px;
    }
    
    .welcome-title {
        font-size: 26px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .decoration-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .decoration-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .decoration-circle-3 {
        display: none;
    }
}

@media (max-width: 576px) {
    .modern-welcome-banner {
        padding: 24px 20px;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .welcome-icon {
        font-size: 56px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 15px;
    }
}

/* ========================================
   MODERN NAVIGATION
   Testata moderna con emoji e stile card
   ======================================== */

.modern-nav {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 24px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    margin-bottom: 24px !important;
}

.modern-nav-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

.modern-nav-tabs {
    gap: 6px;
}

.modern-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px !important;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563 !important;
    background: transparent !important;
    border: 2px solid transparent !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.modern-tab-btn .tab-emoji {
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-tab-btn .tab-text {
    color: #4b5563 !important;
}

.modern-tab-btn:hover {
    background: #f9fafb !important;
    color: #8639FE !important;
    border-color: #e5e7eb !important;
}

.modern-tab-btn:hover .tab-text {
    color: #8639FE !important;
}

.modern-tab-btn:hover .tab-emoji {
    transform: scale(1.15);
}

.modern-tab-btn.active {
    background: linear-gradient(135deg, #8639FE 0%, #9d4edd 100%) !important;
    color: #ffffff !important;
    border-color: #8639FE !important;
    box-shadow: 0 4px 12px rgba(134, 57, 254, 0.25);
}

.modern-tab-btn.active .tab-text {
    color: #ffffff !important;
}

.modern-tab-btn.active .tab-emoji {
    transform: scale(1.1);
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .modern-nav {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px !important;
    }
    
    .modern-nav-title {
        font-size: 24px;
    }
    
    .modern-nav-tabs {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modern-tab-btn {
        font-size: 14px;
        padding: 8px 16px !important;
    }
}

@media (max-width: 576px) {
    .modern-nav-title {
        font-size: 22px;
    }
    
    .modern-tab-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 4px);
    }
    
    .modern-tab-btn .tab-text {
        display: none;
    }
    
    .modern-tab-btn .tab-emoji {
        font-size: 20px;
    }
}

/* ========================================
   MODERN EMPTY STATE
   Design accattivante per stati vuoti
   ======================================== */

.modern-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
    width: 100%;
}

.empty-state-content {
    text-align: center;
    max-width: 500px;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state-icon {
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite;
}

.empty-state-icon svg {
    filter: drop-shadow(0 10px 20px rgba(134, 57, 254, 0.15));
}

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

.empty-state-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.empty-state-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 32px 0;
}

.empty-state-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    text-decoration: none;
}

.suggestion-chip-clickable {
    cursor: pointer;
}

.suggestion-chip:hover {
    background: linear-gradient(135deg, #f0e7ff 0%, #e5d4ff 100%);
    border-color: #8639FE;
    color: #8639FE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(134, 57, 254, 0.2);
    text-decoration: none;
}

.suggestion-chip-clickable:active {
    transform: translateY(0px);
    box-shadow: 0 2px 6px rgba(134, 57, 254, 0.3);
}

/* Responsive Empty State */
@media (max-width: 768px) {
    .modern-empty-state {
        min-height: 300px;
        padding: 40px 20px;
    }
    
    .empty-state-icon svg {
        width: 100px;
        height: 100px;
    }
    
    .empty-state-title {
        font-size: 24px;
    }
    
    .empty-state-description {
        font-size: 14px;
    }
    
    .suggestion-chip {
        font-size: 13px;
        padding: 8px 16px;
    }
}
