/* ============================================
   DELIVERY GALLERY — Carousel + Fanned Photos
   Block: thinh/delivery-gallery
   ============================================ */

.tcd-delivery-section {
    padding: 80px 0 60px;
    background: #fff;
    overflow: hidden;
}
.dark .tcd-delivery-section {
    background: #0A0A0A;
}

/* Header */
.tcd-delivery-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}
.tcd-delivery-header-left {
    flex: 1;
}

/* Tag */
.tcd-delivery-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFF1F0, #FFE8E5);
    color: #DC2626;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.dark .tcd-delivery-tag {
    background: rgba(220, 38, 38, 0.15);
}

.tcd-delivery-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
.dark .tcd-delivery-header h2 {
    color: #fff;
}
.tcd-delivery-header h2 span {
    color: #DC2626;
}
.tcd-delivery-header p {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
    max-width: 400px;
}

/* Fanned Photo Stack */
.tcd-fanned-stack {
    position: relative;
    width: 260px;
    height: 200px;
    flex-shrink: 0;
}
.tcd-fanned-card {
    position: absolute;
    width: 140px;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 3px solid #fff;
}
.dark .tcd-fanned-card {
    border-color: #222;
}
.tcd-fanned-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tcd-fanned-card:nth-child(1) {
    left: 0;
    top: 20px;
    transform: rotate(-12deg);
    z-index: 1;
}
.tcd-fanned-card:nth-child(2) {
    left: 60px;
    top: 0;
    transform: rotate(0deg);
    z-index: 3;
}
.tcd-fanned-card:nth-child(3) {
    left: 120px;
    top: 15px;
    transform: rotate(10deg);
    z-index: 2;
}
.tcd-fanned-card:hover {
    z-index: 10 !important;
    transform: rotate(0deg) scale(1.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Badge */
.tcd-fanned-badge {
    position: absolute;
    bottom: 10px;
    right: 0;
    background: #DC2626;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 100px;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Marquee */
.tcd-marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}
.tcd-marquee-track {
    display: flex;
    gap: 24px;
    animation: tcd-marquee var(--marquee-speed, 40s) linear infinite;
    width: max-content;
}
.tcd-marquee-track:hover {
    animation-play-state: paused;
}
@keyframes tcd-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Polaroid Cards */
.tcd-polaroid {
    flex-shrink: 0;
    width: 260px;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}
.dark .tcd-polaroid {
    background: #111;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.tcd-polaroid:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.tcd-polaroid:nth-child(even):hover {
    transform: translateY(-8px) rotate(1deg);
}
.tcd-polaroid__img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}
.tcd-polaroid__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.tcd-polaroid:hover .tcd-polaroid__img img {
    transform: scale(1.08);
}
.tcd-polaroid__caption {
    padding: 12px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tcd-polaroid__name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.dark .tcd-polaroid__name {
    color: #eee;
}
.tcd-polaroid__model {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.tcd-polaroid__date {
    font-size: 11px;
    color: #bbb;
    text-align: right;
}

/* CTA Bar */
.tcd-delivery-cta-bar {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 0 24px;
    text-align: center;
}
.tcd-delivery-cta-bar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #DC2626;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 32px;
    border: 2px solid #DC2626;
    border-radius: 100px;
    transition: all 0.3s;
}
.tcd-delivery-cta-bar a:hover {
    background: #DC2626;
    color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .tcd-delivery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .tcd-delivery-header h2 {
        font-size: 24px;
    }
    .tcd-fanned-stack {
        width: 220px;
        height: 160px;
    }
    .tcd-fanned-card {
        width: 110px;
        height: 140px;
    }
    .tcd-fanned-card:nth-child(2) {
        left: 50px;
    }
    .tcd-fanned-card:nth-child(3) {
        left: 100px;
    }
    .tcd-polaroid {
        width: 220px;
    }
    .tcd-polaroid__img {
        height: 160px;
    }
}
