/* ========================================
   MODERN ORDER VIEW
   View ordine modernizzata con stile cards dashboard
   ======================================== */

/* Banner ordine viola soft - stile dashboard */
.creatorOrderRevBanner {
    background: linear-gradient(135deg, #f0e7ff 0%, #e5d4ff 50%, #d4bbff 100%);
    height: 180px;
    border-radius: 0 0 32px 32px;
    position: relative;
    overflow: hidden;
}

.creatorOrderRevBanner::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Wrapper principale */
.creatorOrderRevWrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* Immagine ordine principale */
.creatoOrderImage {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(134, 57, 254, 0.1);
    position: relative;
}

.creatoOrderImage img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.creatoOrderImage:hover img {
    transform: scale(1.05);
}

/* Titolo ordine */
.orderRevContent h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

/* Badge status */
.propsalStatusWrap {
    gap: 12px;
    margin-bottom: 20px;
}

.propsalAccepted {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.propsalAccepted:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Badge prezzo e info */
.orderPriceRow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.priceLeftBox {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.priceLeftBox span,
.videoList {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.3s ease;
}

.priceLeftBox span:hover,
.videoList:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Badge briefing con contrasto migliorato */
.orderBriefingBox .orderVideoRow,
.orderVideoBox .orderVideoRow,
.d-flex.alignCenter.orderVideoRow {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.orderBriefingBox .orderVideoRow span,
.orderVideoBox .orderVideoRow span,
.d-flex.alignCenter.orderVideoRow span {
    background-color: white !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.orderBriefingBox .orderVideoRow span svg path,
.orderVideoBox .orderVideoRow span svg path,
.d-flex.alignCenter.orderVideoRow span svg path {
    fill: #1f2937 !important;
}

.orderBriefingBox .orderVideoRow span p,
.orderVideoBox .orderVideoRow span p,
.d-flex.alignCenter.orderVideoRow span p {
    color: #1f2937 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.orderBriefingBox .orderVideoRow span strong,
.orderVideoBox .orderVideoRow span strong,
.d-flex.alignCenter.orderVideoRow span strong {
    color: #111827 !important;
    font-weight: 700 !important;
}

/* Pulsanti azione */
.darkBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    color: #ffffff;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.darkBtn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.35),
                0 4px 12px rgba(141, 63, 242, 0.25);
    text-decoration: none;
}

.darkBtn:active {
    transform: translateY(-2px);
}

.darkBtn svg {
    transition: transform 0.3s ease;
}

.darkBtn:hover svg {
    transform: translateX(4px);
}

.darkBtn.disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.darkBtn.disabled:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(156, 163, 175, 0.15);
}

/* Box ordine review */
.creatorOrderRevBox {
    margin-top: 0px;
}

.creatorOrderRevBox h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Pulsante "Invia candidatura" nella sidebar */
.creatorOrderRevBox .orderStatusWrap {
    margin-top: 24px;
    position: sticky;
    top: 100px;
    z-index: 100;
}

.creatorOrderRevBox .darkBtn {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 16px 24px;
    box-shadow: 0 6px 20px rgba(141, 63, 242, 0.3),
                0 3px 10px rgba(141, 63, 242, 0.2);
}

.revOrderBox {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(134, 57, 254, 0.1),
                0 2px 8px rgba(134, 57, 254, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
}

.revOrderBox:hover {
    box-shadow: 0 8px 24px rgba(134, 57, 254, 0.15),
                0 4px 12px rgba(134, 57, 254, 0.1);
    transform: translateY(-4px);
}

.revOrderBox img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.revOrderBox:hover img {
    transform: scale(1.08);
}

.RevOrderPriceBox {
    padding: 24px;
}

.RevOrderPriceBox h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.RevOrderPriceBox p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.RevOrderPriceBox .videoList {
    margin-top: 8px;
    background: #f9fafb;
    padding: 10px 14px;
}

/* Status ordine */
.orderStatusWrap {
    gap: 16px;
    margin-top: 24px;
}

.orderAssignto {
    display: flex;
    align-items: center;
}

.opOrderAssign {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 2px solid #e9d5ff;
    border-radius: 12px;
    font-size: 14px;
    color: #5b21b6;
    font-weight: 500;
}

.opOrderAssign strong {
    color: #7c3aed;
    margin-right: 4px;
}

/* Componente Section Container riutilizzabile */
.section-container {
    margin-top: 32px;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid;
    transition: all 0.3s ease;
}

/* Prima section con overlap sulla testata */
.creatorOrderRevBox > .row > .col-md-3 > .section-container:first-child,
.creatorOrderRevBox > .row > .col-md-9 > .section-container:first-child {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* Sidebar revOrderBox con overlap */
.creatorOrderRevBox > .row > .col-md-3 > .revOrderBox {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.section-container-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-emoji {
    font-size: 28px;
    line-height: 1;
}

.section-container-content {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid;
}

/* Servizi aggiuntivi moderni */
.additionalServicesBox {
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(135deg, #f8f5ff 0%, #f3f0ff 100%);
    border-radius: 20px;
    border: 1px solid #e9d5ff;
}

.services-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(141, 63, 242, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f3e8ff;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.15);
}

.service-media {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.service-image-container,
.service-video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image-container img {
    transform: scale(1.05);
}

.service-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.service-content {
    padding: 20px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.service-description {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* Sezione Tema del video e dettagli */
.video-theme-section {
    margin-top: 32px;
    padding: 32px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.theme-content {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #fef3c7;
}

.theme-text {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 12px;
}

.theme-text:last-child {
    margin-bottom: 0;
}

.detail-section {
    margin-top: 24px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.detail-section:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.detail-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}

.custom-tag:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .creatorOrderRevBanner {
        height: 120px;
        border-radius: 0 0 24px 24px;
    }
    
    .creatorOrderRevWrapper {
        margin-top: -40px;
    }

    .additionalServicesBox {
        padding: 20px;
        margin-top: 24px;
    }

    .services-title {
        font-size: 22px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-image-container,
    .service-video-container {
        height: 180px;
    }

    .video-theme-section {
        padding: 20px;
        margin-top: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .theme-content {
        padding: 16px;
    }

    .theme-text {
        font-size: 15px;
    }

    .detail-section {
        padding: 16px;
        margin-top: 16px;
    }

    .detail-title {
        font-size: 16px;
    }

    .detail-text {
        font-size: 14px;
    }

    .custom-tag {
        font-size: 13px;
        padding: 6px 12px;
    }

    .section-container {
        padding: 20px;
        margin-top: 24px;
    }

    .section-container-title {
        font-size: 22px;
    }

    .section-emoji {
        font-size: 24px;
    }

    .section-container-content {
        padding: 16px;
    }

    /* Riduci overlap su mobile */
    .creatorOrderRevBox > .row > .col-md-3 > .section-container:first-child,
    .creatorOrderRevBox > .row > .col-md-9 > .section-container:first-child {
        margin-top: -40px;
    }

    .creatorOrderRevBox > .row > .col-md-3 > .revOrderBox {
        margin-top: -40px;
    }

    /* Su mobile, rimuovi overlap per evitare sovrapposizioni */
    .creatorOrderRevBox .row {
        margin-left: 0;
        margin-right: 0;
    }

    .creatorOrderRevBox .row > [class*='col-'] {
        padding-left: 0;
        padding-right: 0;
    }

    /* Aggiungi margine tra sidebar e briefing su mobile */
    .creatorOrderRevBox > .row > .col-md-3 {
        margin-bottom: 24px;
    }
    
    .creatorOrderDetails {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .orderRevContent h3 {
        font-size: 22px;
    }
    
    .priceLeftBox {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .darkBtn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .creatorOrderRevBox h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .creatorOrderDetails {
        padding: 20px 16px;
    }
    
    .orderRevContent h3 {
        font-size: 20px;
    }
    
    .propsalAccepted {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .priceLeftBox span,
    .videoList {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .RevOrderPriceBox {
        padding: 20px;
    }
}
