@import 'variables.css';

/* Global Reset */
body { font-family: 'Inter', sans-serif; background-color: #0f111a; color: #fff; margin: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* === Navbar (Copied from home.css to ensure consistency) === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* var(--border-glass) */
    background: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px; /* var(--container-width) */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.brand span {
    color: #00f2ea; /* var(--primary) */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.6); /* var(--text-muted) */
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #fff;
}

.btn-nav {
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #00f2ea; /* var(--primary) */
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 242, 234, 0.4);
    opacity: 0.9;
}


/* === Details Hero Section === */
.listing-hero {
    position: relative;
    padding: 10rem 0 6rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(40px);
    z-index: 1;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, #0F0F13, transparent 50%, #0F0F13);
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 3;
}

.listing-icon-lg {
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 1.5rem;
    color: #fff;
    position: relative;
    z-index: 3;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.listing-icon-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-color { color: #0088cc; box-shadow: 0 20px 50px rgba(0,136,204,0.15); border-color: rgba(0,136,204,0.3); }
.bot-color { color: #ff0055; box-shadow: 0 20px 50px rgba(255,0,85,0.15); border-color: rgba(255,0,85,0.3); }
.group-color { color: #ff9900; box-shadow: 0 20px 50px rgba(255,153,0,0.15); border-color: rgba(255,153,0,0.3); }

.listing-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.listing-meta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-divider {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}


/* === Content Layout === */
.content-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 2.5rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    white-space: pre-line;
}

/* Sidebar */
.details-sidebar .glass-card {
    padding: 2rem;
    background: rgba(30, 30, 40, 0.8);
}

.join-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: linear-gradient(135deg, #00f2ea 0%, #00c2bb 100%);
    color: #000;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.2);
}

.join-btn-large::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.join-btn-large:hover::before { left: 100%; }
.join-btn-large:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px rgba(0, 242, 234, 0.3); }

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}
.stat-box:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.stat-value { font-size: 1.2rem; font-weight: 700; color: #fff; display: block; margin-bottom: 5px; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.share-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.share-btn {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: none;
}
.share-btn:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }

/* Similar Listings Grid */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.similar-card {
    display: block;
    text-decoration: none;
}

.similar-glass {
    padding: 1.2rem; 
    height: 100%; 
    transition: 0.3s; 
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(30, 30, 40, 0.6);
    border-radius: 16px;
}

.similar-glass:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 50, 0.8);
}

@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; margin-top: 0; gap: 2rem; }
    .listing-title { font-size: 2.2rem; }
    .listing-hero { padding: 6rem 0 3rem; }
    .details-sidebar { order: -1; margin-bottom: 0; }
    .join-btn-large { position: fixed; bottom: 20px; left: 20px; right: 20px; width: auto; z-index: 100; margin-bottom: 0; box-shadow: 0 10px 40px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.2); }
    .details-sidebar .glass-card { padding-bottom: 1rem; } 
    .nav-container { padding: 0 1rem; }
}