@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&family=Outfit:wght@300;600;900&display=swap');

/* ============================================================
   DIAMOND.CSS — ULTIMATE ELITE EDITION
   ============================================================ */

:root {
    --dmnd-cyan: #00e5ff;
    --dmnd-bg: #000000;
    --border: rgba(0, 229, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; font-family: 'Inter', sans-serif; }

body.content-body { background-color: var(--dmnd-bg); color: #fff; overflow-x: hidden; }

/* 💎 PARTICLES */
.dmnd-particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.dmnd-particle { position: absolute; background: var(--dmnd-cyan); border-radius: 50%; opacity: 0.3; animation: float var(--dur) linear infinite; animation-delay: var(--delay); }
@keyframes float { from { transform: translateY(110vh) scale(1); opacity: 0.3; } to { transform: translateY(-10vh) scale(0); opacity: 0; } }

/* 💎 TOP NAV */
.content-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px; background: rgba(0,0,0,0.95); backdrop-filter: blur(25px);
    z-index: 4000; border-bottom: 0.5px solid var(--border);
}

.back-link { 
    color: var(--dmnd-cyan); 
    text-decoration: none; 
    font-size: 0.6rem; 
    font-weight: 900; 
    border: 1px solid rgba(0, 229, 255, 0.3); 
    padding: 6px 15px; 
    border-radius: 100px; 
    letter-spacing: 1px;
    background: rgba(0, 229, 255, 0.05);
}

.tier-indicator { 
    font-family: 'Outfit', sans-serif; 
    font-size: 0.75rem; 
    font-weight: 900; 
    color: #fff; 
    letter-spacing: 3px; 
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}
.nav-icons { display: none; }

/* 💎 BOTTOM TABS */
.tabs-container {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 75px;
    display: flex; justify-content: space-around; align-items: center;
    background: rgba(0,0,0,0.98); backdrop-filter: blur(30px);
    z-index: 4000; border-top: 0.5px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-btn { 
    flex: 1; 
    height: 100%; 
    background: none; 
    border: none; 
    color: #555; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 5px; 
    font-size: 0.5rem; 
    font-weight: 800; 
    cursor: pointer; 
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tab-btn i { font-size: 1.3rem; margin-bottom: 2px; }
.tab-btn.active { color: #fff; }
.tab-btn.active i { color: var(--dmnd-cyan); transform: translateY(-2px); }

/* 💎 CONTENT WRAPPER */
.content-wrapper { padding-top: 60px; padding-bottom: 75px; min-height: 100vh; }

.tab-content { display: none; animation: dmndIn 0.4s cubic-bezier(0.2, 0, 0.2, 1); height: 100%; }
.tab-content.active { display: block; }
.tab-content#chat.active { display: flex; flex-direction: column; }

@keyframes dmndIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* 💎 GALLERY (Professional Gapless Mosaic) */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-rows: 200px;
    gap: 2px; /* Espacio mínimo casi invisible */
    padding: 0;
    background: #000;
}

.gallery-item { 
    position: relative; 
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

/* Logic for Mosaic spans - Filled perfectly */
.gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 2; } 
.gallery-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(6) { grid-column: span 1; grid-row: span 1; }

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: block;
}

.item-badge { 
    position: absolute; top: 10px; right: 10px; 
    background: rgba(0, 0, 0, 0.5); 
    color: #fff; 
    font-size: 0.5rem; font-weight: 900; 
    padding: 3px 8px; border-radius: 4px; 
    z-index: 10; 
}

/* 💎 LIGHTBOX (Facebook Style - Pure Black) */
.dmnd-modal {
    position: fixed; inset: 0;
    background: #000000;
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    animation: zoomIn 0.2s ease;
}

.dmnd-modal.active { display: flex; }

.modal-close {
    position: absolute; top: 40px; right: 30px;
    color: #fff; font-size: 2.5rem; font-weight: 300;
    cursor: pointer; z-index: 10001;
    opacity: 0.8;
}

.modal-img {
    width: 100%; height: 100%;
    object-fit: contain; /* Muestra la foto COMPLETA sin cortes */
}

@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* 💎 VIDEOS DIAMOND (Chida / Cinematic Edition) */
.tab-content#videos {
    position: fixed;
    top: 60px; 
    bottom: 0; /* Full scroll reach */
    left: 0; 
    right: 0;
    background: #000;
    z-index: 3000;
    overflow-y: auto;
    padding-bottom: 120px; /* Room for tabs */
    -webkit-overflow-scrolling: touch;
}

.dmnd-video-list { 
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.dmnd-v-card { 
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Formato Cine */
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    border: 0.5px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.v-preview { width: 100%; height: 100%; position: relative; }
.v-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.play-btn-dmnd { 
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    width: 60px; height: 60px; 
    background: rgba(0, 229, 255, 0.2); 
    backdrop-filter: blur(10px); 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--dmnd-cyan); font-size: 1.5rem; 
    border: 1px solid var(--dmnd-cyan);
    z-index: 10;
}

.v-details { 
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 5;
}

.v-details h3 { font-size: 0.9rem; color: #fff; font-weight: 900; margin: 0; letter-spacing: 1px; font-family: 'Outfit', sans-serif; }

.v-badge-top {
    position: absolute; top: 12px; left: 12px;
    background: var(--dmnd-cyan); color: #000;
    padding: 4px 12px; border-radius: 100px;
    font-size: 0.55rem; font-weight: 900;
    z-index: 10;
}

/* 💎 CHAT — Controlado por chat-diamond.css */
.tab-content#chat {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    overflow: hidden;
    padding: 0 !important;
}

.tab-content#chat .dmnd-chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* 💎 PERSONAL SECTION (Responsive & Premium) */
.diamond-personal-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    padding-bottom: 120px;
}

.diamond-personal-box {
    text-align: center;
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.diamond-personal-box:active { transform: scale(0.98); }

.diamond-personal-box i { 
    font-size: 3rem; 
    color: var(--dmnd-cyan); 
    margin-bottom: 20px; 
    display: block;
}

.diamond-personal-box h3 { 
    font-family: 'Outfit', sans-serif; 
    font-size: 1.4rem; 
    font-weight: 900;
    margin-bottom: 12px; 
    letter-spacing: 1px;
}

.diamond-personal-box p { 
    font-size: 0.9rem; 
    color: #888; 
    margin-bottom: 30px; 
    line-height: 1.6; 
}

.request-btn { 
    background: #fff; 
    color: #000; 
    border: none; 
    padding: 16px 40px; 
    border-radius: 100px; 
    font-weight: 900; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    text-transform: uppercase;
    width: 100%; /* Botón ancho para móvil */
    max-width: 250px;
    cursor: pointer;
}

.donation-box {
    box-shadow: 0 0 30px rgba(255, 64, 129, 0.1);
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .diamond-personal-box { padding: 35px 20px; }
}
/* 💎 LIVE SECTION (Clean & Professional) */
.live-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.live-tag { 
    color: var(--dmnd-cyan); 
    font-size: 0.8rem; 
    font-weight: 900; 
    letter-spacing: 1px;
}

.live-countdown { 
    color: #888; 
    font-size: 0.7rem; 
    font-weight: 700;
}

.live-preview-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--border);
    margin: 0 10px;
}

.live-preview-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6; /* Un poco más claro */
}

.live-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.live-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--dmnd-cyan);
    margin-bottom: 10px;
    overflow: hidden;
}

.live-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.live-description {
    color: #ccc;
    font-size: 0.8rem;
    margin-bottom: 15px;
    max-width: 250px;
}

.remind-btn {
    background: var(--dmnd-cyan);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
}
