/* =========================================================
   DRAMICBOX - COLLABORATIONS & INSTAGRAM PARTNERS SYSTEM
   ========================================================= */

.collab-section {
    padding: 20px 0 45px;
    position: relative;
}

.collab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.collab-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.collab-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 18px rgba(220, 39, 67, 0.35);
}

.collab-title {
    margin: 0;
    font-weight: 900;
    font-size: 1.45rem;
    color: #fff;
    letter-spacing: -0.3px;
}

.collab-subtitle {
    margin: 2px 0 0;
    color: #94a3b8;
    font-size: 0.82rem;
}

.collab-redeem-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fb7185;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.collab-redeem-btn:hover {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

/* Collaboration Grid */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

/* Individual Collaboration Card */
.collab-card {
    position: relative;
    background: radial-gradient(circle at 85% 15%, rgba(225, 29, 72, 0.08), transparent 45%),
                linear-gradient(145deg, #111322, #0d0e1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 22px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.collab-card:hover {
    transform: translateY(-6px);
    border-color: rgba(225, 29, 72, 0.45);
    box-shadow: 0 16px 40px rgba(225, 29, 72, 0.22);
}

.collab-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* Instagram Story Ring */
.collab-avatar-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    cursor: pointer;
}

.collab-story-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    animation: collabRingRotate 4s linear infinite;
    padding: 3px;
}

@keyframes collabRingRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.collab-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0d0e1a;
    position: relative;
    z-index: 2;
    background: #1e1b4b;
}

.collab-story-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    z-index: 3;
    background: #ec4899;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 99px;
    border: 2px solid #0d0e1a;
    display: flex;
    align-items: center;
    gap: 3px;
}

.collab-user-info {
    flex: 1;
    min-width: 0;
}

.collab-user-name {
    margin: 0 0 3px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collab-verified-icon {
    color: #38bdf8;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.collab-handle {
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.collab-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.collab-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.collab-chip.partner {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(245, 158, 11, 0.18));
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.collab-chip.followers {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
    color: #c4b5fd;
}

/* Card Body & Bio */
.collab-bio {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Gift Code Pill */
.collab-promo-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.collab-promo-box:hover {
    background: rgba(245, 158, 11, 0.15);
}

.collab-promo-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #fbbf24;
    font-weight: 700;
}

.collab-promo-code {
    background: #fbbf24;
    color: #0f172a;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.collab-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.collab-btn-insta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
    transition: all 0.2s;
}

.collab-btn-insta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(220, 39, 67, 0.45);
    color: #fff;
}

.collab-btn-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.collab-btn-site:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
    color: #fff;
}

/* ==================== INSTAGRAM STORY VIEWER MODAL ==================== */
.collab-story-modal {
    position: fixed;
    inset: 0;
    z-index: 100005;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.collab-story-container {
    width: min(420px, 94vw);
    height: min(720px, 88vh);
    background: #0d0f1a;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.collab-story-progress-bar {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10;
}

.collab-story-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.collab-story-top {
    position: absolute;
    top: 24px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.collab-story-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collab-story-user img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.collab-story-user b {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    display: block;
}

.collab-story-user small {
    color: #cbd5e1;
    font-size: 0.72rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.collab-story-close {
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.collab-story-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collab-story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.92) 100%);
}

.collab-story-content {
    position: relative;
    z-index: 8;
    padding: 24px 20px;
    margin-top: auto;
}

.collab-story-badge-top {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    padding: 5px 12px;
    border-radius: 99px;
    font-weight: 900;
    font-size: 0.74rem;
    margin-bottom: 10px;
}

.collab-story-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.collab-story-desc {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 20px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.collab-story-actions {
    display: flex;
    gap: 10px;
}

.collab-story-action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.collab-story-action-btn.watch {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.collab-story-action-btn.instagram {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .collab-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .collab-card {
        padding: 16px;
    }
}
