/* 
   ==========================================================================
   🚀 Modern Server Promotion Detail
   ========================================================================== 
*/

.pd-hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 60px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
    text-align: center;
}

.pd-hero-aura {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.pd-hero-inner {
    position: relative;
    z-index: 1;
}

.pd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    background: var(--bg-sub);
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.pd-hero-title {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 850;
    letter-spacing: -0.04em;
}

.pd-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.pd-action-link {
    text-decoration: none;
}

.pd-back-btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.875rem;
}

.pd-section { padding-top: 3rem; padding-bottom: 6rem; }

.pd-wrap {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* ── 💎 Main Detail Card ── */
.pd-card {
    background: var(--yg-glass, rgba(255,255,255,0.03));
    backdrop-filter: blur(var(--yg-glass-blur, 16px));
    -webkit-backdrop-filter: blur(var(--yg-glass-blur, 16px));
    border: 1px solid var(--yg-border);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .pd-card {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Cover Image */
.pd-cover-wrap {
    width: 100%;
    height: 320px;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--yg-border);
}
.pd-cover {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Header Section */
.pd-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.pd-icon {
    width: 100px; height: 100px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
[data-theme="dark"] .pd-icon { border-color: rgba(255,255,255,0.1); }

.pd-icon-fallback {
    --pd-icon-color-1: #5865f2;
    --pd-icon-color-2: #7c3aed;
    background: linear-gradient(135deg, var(--pd-icon-color-1), var(--pd-icon-color-2));
}

.pd-icon-fallback-default {
    --pd-icon-color-1: #5865f2;
    --pd-icon-color-2: #7c3aed;
}

.pd-icon-palette-0 { --pd-icon-color-1: #5865f2; --pd-icon-color-2: #7c3aed; }
.pd-icon-palette-1 { --pd-icon-color-1: #0ea5e9; --pd-icon-color-2: #6366f1; }
.pd-icon-palette-2 { --pd-icon-color-1: #10b981; --pd-icon-color-2: #059669; }
.pd-icon-palette-3 { --pd-icon-color-1: #f59e0b; --pd-icon-color-2: #ef4444; }
.pd-icon-palette-4 { --pd-icon-color-1: #ec4899; --pd-icon-color-2: #a855f7; }
.pd-icon-palette-5 { --pd-icon-color-1: #14b8a6; --pd-icon-color-2: #0ea5e9; }

.pd-error-icon {
    color: #f59e0b;
}

.pd-header-text { flex: 1; }
.pd-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    color: var(--yg-text);
}
.pd-guild-name {
    font-size: 1.1rem;
    color: var(--yg-primary);
    font-weight: 600;
    opacity: 0.8;
}

.pd-divider {
    border: 0;
    height: 1px;
    background: var(--yg-border);
    margin: 2.5rem 0;
}

/* Content Blocks */
.pd-section-block { margin-bottom: 2.5rem; }
.pd-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yg-primary);
    margin-bottom: 1rem;
}
.pd-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--yg-text);
    white-space: pre-wrap;
}
.pd-desc.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-condition {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 16px;
    font-weight: 600;
    color: var(--yg-text);
}

.pd-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pd-tag {
    background: var(--yg-glass);
    border: 1px solid var(--yg-border);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--yg-text-muted);
}

/* Footer & Actions */
.pd-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.pd-meta-chips { display: flex; gap: 1rem; }
.pd-chip {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--yg-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.pd-actions { display: flex; gap: 1rem; align-items: center; }

.pd-like-btn {
    background: transparent;
    border: 1.5px solid #ef4444;
    color: #ef4444;
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-weight: 700;
    transition: all 0.2s;
}
.pd-like-btn.liked, .pd-like-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.pd-join-btn {
    font-size: 1.1rem !important;
    padding: 0.75rem 2.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pd-header { flex-direction: column; text-align: center; gap: 1.5rem; }
    .pd-card { padding: 1.5rem; }
    .pd-footer { flex-direction: column; align-items: stretch; }
    .pd-actions { flex-direction: column; }
    .pd-join-btn { width: 100%; }
    .pd-cover-wrap { height: 220px; }
    .pd-icon { width: 80px; height: 80px; }
    .pd-title { font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .pd-section { padding-top: 1.5rem; padding-bottom: 3rem; }
    .pd-card { padding: 1.25rem; border-radius: 1.25rem; }
    .pd-cover-wrap { height: 160px; border-radius: 1rem; margin-bottom: 1.25rem; }
    .pd-title { font-size: 1.4rem; }
    .pd-icon { width: 64px; height: 64px; }
    .pd-header { gap: 1rem; margin-bottom: 1.5rem; }
    .pd-divider { margin: 1.5rem 0; }
    .pd-meta-chips { flex-wrap: wrap; gap: 0.5rem; }
    .pd-footer { gap: 1rem; }
}
