/* ============================================================
   LifeStyleMod – Pack Detail Page (V2 – Banner Inspired)
   ============================================================ */

/* ---------- Container ---------- */
.pack-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 16px 50px;
    position: relative;
    z-index: 1;
}

/* ---------- Breadcrumb ---------- */
.pack-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
}
.pack-breadcrumb a {
    color: var(--primary-hover);
    text-decoration: none;
}
.pack-breadcrumb a:hover {
    text-decoration: underline;
}
.pack-breadcrumb span {
    color: var(--text-muted);
}

/* ---------- Pack Card ---------- */
.pack-detail-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 32px;
    overflow: hidden;
    animation: fadeUp 0.6s ease forwards;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 30px rgba(139,92,246,0.1);
}

/* ---------- Gallery / Media (improved) ---------- */
.pack-gallery-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pack-gallery-slides {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}
.pack-gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}
.pack-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pack-video-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pack-video-placeholder .play-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px; color: #fff;
    transition: all 0.2s;
    pointer-events: none;
}
.pack-video-placeholder:hover .play-icon {
    background: rgba(139,92,246,0.7);
    border-color: #a78bfa;
}
.pack-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pack-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pack-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pack-slider-btn:hover { background: rgba(0,0,0,0.8); }
.pack-slider-btn.prev { left: 10px; }
.pack-slider-btn.next { right: 10px; }
.pack-slider-dots {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10;
}
.pack-slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.2s;
    border: none;
}
.pack-slider-dot.active { background: #8b5cf6; }
.pack-gallery-counter {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px; z-index: 10;
}
.pack-media-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.pack-media-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pack-no-media {
    font-size: 80px;
    opacity: 0.3;
}

/* ---------- Pack Body ---------- */
.pack-body {
    padding: 32px;
}
.pack-code-text {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.pack-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 900;
    margin-bottom: 12px;
    color: #f8fafc;
}
.pack-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #c4b5fd;
}
.pack-info-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.pack-info-item {
    background: rgba(15,23,42,0.4);
    border: 1px solid rgba(245,158,11,0.1);
    border-radius: 30px;
    padding: 9px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.pack-info-item .num {
    font-weight: 800;
    color: #e2e8f0;
    font-size: 16px;
}

/* Creator info */
.pack-creator-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px 22px;
    background: rgba(15,23,42,0.4);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 18px;
    width: fit-content;
}
.pack-creator-avatar {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(139,92,246,0.4);
}
.pack-creator-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.pack-creator-name {
    font-weight: 700;
    font-size: 15px;
}
.pack-creator-name a {
    color: #c4b5fd;
    text-decoration: none;
}
.pack-creator-name a:hover {
    color: #fff;
}
.pack-creator-role-badge {
    font-size: 10px;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 4px;
    display: inline-block;
}
.pack-badge-owner { background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.25); }
.pack-badge-admin { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.pack-badge-creator { background: rgba(45,212,191,0.15); color: #5eead4; border: 1px solid rgba(45,212,191,0.25); }
.pack-badge-user { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }

/* Action buttons */
.pack-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.pack-rate-btn {
    background: rgba(15,23,42,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    padding: 10px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}
.pack-rate-btn:hover { transform: translateY(-2px); }
.pack-rate-btn.like { color: #5eead4; }
.pack-rate-btn.like:hover { background: #2dd4bf; color: #000; border-color: #2dd4bf; }
.pack-rate-btn.dislike { color: #fca5a5; }
.pack-rate-btn.dislike:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
.pack-rate-btn.share { color: #a78bfa; }
.pack-rate-btn.share:hover { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }
.pack-rate-btn.edit { color: #fbbf24; }
.pack-rate-btn.edit:hover { background: #f59e0b; color: #000; border-color: #f59e0b; }

/* Bookmark button */
.pack-rate-btn.bookmark-btn {
    color: #a78bfa;
}
.pack-rate-btn.bookmark-btn:hover {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}
.pack-rate-btn.bookmarked {
    color: #fbbf24;
    border-color: #fbbf24;
    background: rgba(245,158,11,0.1);
}

/* Tags */
.pack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.pack-tag {
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 11px;
    color: #c4b5fd;
    font-weight: 600;
}

/* Description */
.pack-desc {
    background: rgba(15,23,42,0.35);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 24px;
    border-radius: 18px;
    margin-bottom: 24px;
    line-height: 2;
    font-size: 14px;
    color: #cbd5e1;
}

/* Download button */
.pack-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: #fff;
    text-decoration: none;
    padding: 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}
.pack-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139,92,246,0.4);
}
.pack-download-btn.locked {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    cursor: not-allowed;
    opacity: 0.8;
}
.pack-download-btn.locked:hover {
    transform: none;
    box-shadow: none;
}

/* Like gate */
.pack-like-gate {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}
.pack-like-gate p {
    font-size: 15px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 16px;
}
.pack-like-gate .progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0;
}
.pack-like-gate .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 0.5s ease;
}
.pack-like-gate .progress-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Premium */
.pack-premium-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pack-premium-price {
    font-size: 18px;
    font-weight: 800;
    color: #fbbf24;
}
.pack-premium-timer {
    font-family: monospace;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
}

/* Comments */
.pack-comments-section {
    margin-top: 28px;
    background: rgba(15,23,42,0.45);
    backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 32px;
    padding: 30px;
}
.pack-comments-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pack-comment-form textarea {
    width: 100%;
    padding: 16px;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 18px;
    color: #fff;
    font-size: 13px;
    min-height: 100px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
    outline: none;
}
.pack-comment-form textarea:focus {
    border-color: rgba(139,92,246,0.5);
}
.pack-comment-form button {
    margin-top: 12px;
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
    border: none;
    padding: 11px 30px;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}
.pack-comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
    max-height: 600px;
    overflow-y: auto;
}
.pack-comment-item {
    background: rgba(15,23,42,0.35);
    border: 1px solid rgba(245,158,11,0.1);
    border-radius: 18px;
    padding: 18px;
}
.pack-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.pack-comment-name {
    font-weight: 700;
    font-size: 14px;
}
.pack-comment-name.owner-color { color: #fca5a5; }
.pack-comment-name.admin-color { color: #6ee7b7; }
.pack-comment-name.creator-color { color: #c4b5fd; }
.pack-comment-name.user-color { color: #94a3b8; }
.pack-comment-date {
    font-size: 10px;
    color: #64748b;
}
.pack-comment-text {
    font-size: 13px;
    line-height: 1.8;
    color: #cbd5e1;
    word-break: break-word;
}
.pack-comment-delete {
    color: #f87171;
    text-decoration: none;
    font-size: 11px;
    background: rgba(239,68,68,0.1);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(239,68,68,0.2);
}

/* Sidebar (related packs) */
.pack-sidebar {
    margin-top: 28px;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 32px;
    padding: 24px;
}
.pack-sidebar h3 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pack-popular-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.pack-popular-item:last-child { border-bottom: none; }
.pack-popular-item:hover { color: #c4b5fd; }
.pack-popular-thumb {
    width: 55px; height: 55px;
    object-fit: cover;
    border-radius: 12px;
    background: #1e293b;
    flex-shrink: 0;
}
.pack-popular-placeholder {
    width: 55px; height: 55px;
    border-radius: 12px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.pack-popular-title {
    font-size: 13px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pack-popular-stats {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Channel card */
.pack-channel-card {
    margin-top: 28px;
    background: rgba(15,23,42,0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 32px;
    padding: 24px;
    text-align: center;
}
.pack-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 30px;
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}
.pack-channel-btn:hover {
    background: rgba(139,92,246,0.25);
    border-color: #8b5cf6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139,92,246,0.2);
}

/* Share toast */
.pack-share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2dd4bf;
    color: #000;
    padding: 14px 28px;
    border-radius: 50px;
    z-index: 1000;
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(45,212,191,0.4);
}
.pack-share-toast.show { opacity: 1; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .pack-body { padding: 20px; }
    .pack-gallery-slider { aspect-ratio: 4/3; }
    .pack-slider-btn { width: 36px; height: 36px; font-size: 16px; }
}