/* css/terminal.css */

:root {
    --bg-color: #010101;
    --panel-bg: #0a0a0a;
    --border-color: #262626;
    --accent-green: #39ff14;
    --text-main: #ffffff;
    --text-muted: #8e8e8e;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .profile-title, .tab, .lightbox-title {
    font-family: var(--font-sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.stat-number, .strain-thc, .lightbox-stat-value, .attribute-tag, .bitcoin-amount {
    font-family: var(--font-mono);
    font-weight: 400;
}

.btn {
    font-family: var(--font-sans);
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0; 
    transition: all 0.15s ease; 
}
.btn-primary { background: var(--accent-green); color: #000; border: 1px solid var(--accent-green); }
.btn-primary:hover { background: #000; color: var(--accent-green); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--text-main); color: var(--text-main); }

/* AGE GATE - Solid Black Background */
.age-gate { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #010101; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.age-gate.hidden { display: none; }
.ag-box { border: 1px solid var(--accent-green); background: #050505; padding: 60px 40px; max-width: 600px; width: 100%; box-shadow: 0px 0px 30px rgba(57, 255, 20, 0.1); display: flex; flex-direction: column; align-items: center; }
.ag-title { font-size: 20px; color: var(--accent-green); margin-bottom: 10px; font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.1em; }
.ag-heading { font-size: 42px; color: #fff; margin-bottom: 30px; line-height: 1.1; font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.02em; }
.ag-text { font-size: 14px; color: #8e8e8e; max-width: 500px; margin-bottom: 40px; font-family: var(--font-sans); line-height: 1.6;}
.ag-btn { background: #050505; border: 2px solid var(--accent-green); color: var(--accent-green); padding: 18px 30px; font-family: var(--font-mono); font-size: 14px; cursor: pointer; transition: 0.2s; width: 100%; max-width: 350px; margin-bottom: 40px; }
.ag-btn:hover { background: var(--accent-green); color: #000; box-shadow: 0 0 15px rgba(57,255,20,0.3); }
.ag-links { display: flex; gap: 30px; }
.ag-link { color: #555; font-size: 11px; text-decoration: none; font-family: var(--font-mono); transition: 0.2s; letter-spacing: 0.05em;}
.ag-link:hover { color: var(--accent-green); }

.main-content { display: block; width: 100%; opacity: 1 !important; visibility: visible !important; animation: snapIn 0.3s ease-out; }
@keyframes snapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.container { max-width: 935px; margin: 0 auto; padding: 0; }
main.container { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); min-height: 100vh; padding-bottom: 100px; }

/* HEADER */
.header { border-bottom: 1px solid var(--border-color); padding: 20px 16px; position: sticky; top: 0; background: rgba(1, 1, 1, 0.9); backdrop-filter: blur(10px); z-index: 100; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 18px; color: var(--accent-green); text-decoration: none; }

/* INSTAGRAM CLONE PROFILE GRID */
.profile-section { 
    padding: 40px 20px; 
    border-bottom: 1px solid var(--border-color); 
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
        "avatar header"
        "avatar stats"
        "avatar bio";
    column-gap: 60px;
    row-gap: 0px;
    align-items: start;
}
.profile-avatar { 
    grid-area: avatar; 
    width: 150px; height: 150px; 
    border: 2px solid var(--border-color); 
    border-radius: 50%; 
    object-fit: cover; 
    background: #111; 
    padding: 4px; 
}
.profile-header-row { grid-area: header; display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.profile-title { font-size: 28px; color: #ffffff; letter-spacing: -0.04em; margin: 0; }
.profile-stats { grid-area: stats; display: flex; gap: 40px; margin: 15px 0 20px 0; border: none; padding: 0; }

.profile-bio { grid-area: bio; }
.desktop-btn { display: block; padding: 8px 16px; font-size: 12px; }
.mobile-btn { display: none; }

.stat-number { font-size: 16px; color: var(--text-main); font-weight: 700; font-family: var(--font-sans); }
.stat-label { font-size: 14px; color: var(--text-main); font-weight: 400; text-transform: lowercase; }

.bio-name { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 14px; }
.bio-details { font-size: 14px; color: #ccc; margin-bottom: 4px; font-weight: 400; line-height: 1.5; }

/* TABS */
.tabs { display: flex; border-bottom: 1px solid var(--border-color); background: #050505; }
.tab { flex: 1; padding: 20px 0; text-align: center; font-size: 12px; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: 0.2s; }
.tab.active { color: var(--text-main); border-bottom: 2px solid var(--text-main); }
.tab:hover:not(.active) { color: var(--text-main); }

/* GRID */
.strain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-color); }
.strain-item { background: var(--panel-bg); aspect-ratio: 1; position: relative; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.strain-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.strain-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.2s; pointer-events: none;}
.strain-name { font-family: var(--font-sans); font-weight: 800; font-size: 16px; color: var(--text-main); margin-bottom: 4px; text-align: center; padding: 0 20px;}
.strain-thc { color: var(--accent-green); font-size: 12px; letter-spacing: 0.1em;}
.strain-hint { font-family: var(--font-mono); font-size: 9px; color: #fff; margin-top: 15px; border-bottom: 1px solid var(--accent-green); padding-bottom: 2px; opacity: 0; transform: translateY(5px); transition: all 0.3s ease; }
@media (min-width: 769px) { .strain-hint { display: none !important; } }

.strain-item:hover .strain-image, .strain-item.force-hover .strain-image { transform: scale(1.05); }
.strain-item:hover .strain-overlay, .strain-item.force-hover .strain-overlay { opacity: 1; }
.strain-item.force-hover .strain-hint { opacity: 1; transform: translateY(0); }

/* LIGHTBOX */
.lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.95); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.lightbox.active { display: flex; }
.lightbox-content { background: var(--bg-color); border: 1px solid var(--border-color); width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; position: relative; transition: transform 0.3s ease-out;}

.lightbox-close { 
    position: absolute; top: 20px; right: 20px; 
    background: #000000; color: #fff; 
    border: 1px solid var(--border-color); 
    width: 44px; height: 44px; 
    cursor: pointer; font-size: 20px; z-index: 50; 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.2s; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.lightbox-close:hover { background: var(--text-main); color: #000; border-color: var(--text-main); }

.lightbox-layout { display: flex; flex-direction: row; }

/* MEDIA GALLERY */
.media-gallery { flex: 1.2; display: flex; flex-direction: column; gap: 1px; background: var(--border-color); overflow-y: auto; max-height: 700px; scroll-behavior: smooth; position: relative; }
.media-gallery::-webkit-scrollbar { width: 4px; }
.media-gallery::-webkit-scrollbar-track { background: var(--bg-color); }
.media-gallery::-webkit-scrollbar-thumb { background: var(--border-color); }
.media-gallery::-webkit-scrollbar-thumb:hover { background: var(--accent-green); }
.media-item { background: #0a0a0a; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; border-bottom: 1px solid var(--border-color);}
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: contain; }

.media-hint { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: var(--accent-green); font-family: var(--font-mono); font-size: 10px; padding: 6px 12px; border: 1px solid var(--accent-green); opacity: 0; animation: fadeHint 4s forwards; pointer-events: none; white-space: nowrap; z-index: 5;}
@keyframes fadeHint { 0% { opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; display: none; } }

/* LIGHTBOX INFO */
.lightbox-info-col { flex: 1; padding: 40px; display: flex; flex-direction: column; }

.lightbox-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; gap: 15px; padding-right: 60px;}
.lightbox-titles { flex: 1; }
.lightbox-title { font-size: 32px; color: #fff; margin-bottom: 8px; letter-spacing: -0.05em; line-height: 1; }
.lightbox-subtitle { font-family: var(--font-mono); font-size: 11px; color: var(--accent-green); margin-bottom: 0; letter-spacing: 0.1em; }

.lightbox-action-col { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0;}
.action-buttons { display: flex; gap: 10px; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border-color); background: #050505; color: var(--text-muted); transition: all 0.2s ease; text-decoration: none; cursor: pointer; position: relative; }
.icon-btn:hover { border-color: var(--accent-green); color: var(--accent-green); background: rgba(57, 255, 20, 0.05); }
.lightbox-farm-logo { width: 98px; height: 98px; border: 1px solid var(--border-color); object-fit: cover; background: #111; border-radius: 50%; padding: 2px;}

.copy-feedback { position: absolute; top: -35px; left: 50%; transform: translateX(-50%); background: var(--accent-green); color: #000; font-family: var(--font-mono); font-size: 10px; padding: 4px 8px; opacity: 0; pointer-events: none; transition: 0.2s; white-space: nowrap; font-weight: bold; }
.copy-feedback.show { opacity: 1; transform: translateX(-50%) translateY(-5px); }

.lightbox-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-color); margin-bottom: 25px; border: 1px solid var(--border-color);}
.lightbox-stat { background: #050505; padding: 20px 10px; text-align: center; }
.lightbox-stat-value { color: #fff; font-size: 18px; margin-bottom: 4px; }
.lightbox-stat-label { font-size: 10px; color: var(--text-muted); font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; }

.attribute-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px;}
.attribute-tag { background: #111; border: 1px solid var(--border-color); padding: 6px 12px; font-size: 10px; font-family: var(--font-mono); color: #fff; letter-spacing: 0.05em;}

@media (max-width: 768px) {
    .container { border: none; }
    main.container { border: none; }
    
    .profile-section { 
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "avatar stats"
            "bio bio"
            "mobilebtn mobilebtn";
        column-gap: 20px;
        row-gap: 15px;
        padding: 30px 16px;
    }
    .profile-avatar { width: 80px; height: 80px; }
    .profile-header-row { display: none; } 
    
    /* FIX: Added align-self: center; to drop the stats block down to perfectly match the 80px avatar! */
    .profile-stats { justify-content: space-around; align-items: center; align-self: center; width: 100%; gap: 10px; margin: 0; }
    
    .stat-number { font-size: 16px; text-align: center;}
    .stat-label { font-size: 12px; text-align: center;}
    .desktop-btn { display: none; }
    .mobile-btn { display: block; grid-area: mobilebtn; width: 100%; margin-top: 5px; }

    .ag-box { padding: 40px 20px; box-shadow: none; border-left: none; border-right: none; background: transparent; border-top: 1px dashed var(--border-color); border-bottom: 1px dashed var(--border-color); }
    .ag-heading { font-size: 28px; margin-bottom: 20px; }
    .ag-text { font-size: 12px; margin-bottom: 30px; }
    .ag-btn { padding: 15px; font-size: 14px; margin-bottom: 30px;}
    .ag-links { gap: 15px; flex-direction: column; }
    
    .strain-grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox-layout { flex-direction: column; }
    
    .media-gallery { flex-direction: row; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; max-height: 400px; border-right: none; border-bottom: 1px solid var(--border-color); }
    .media-item { scroll-snap-align: start; border-bottom: none; border-right: 1px solid var(--border-color); min-width: 100%;}
    
    .lightbox { padding: 0; }
    .lightbox-content { max-height: 100vh; height: 100vh; width: 100vw; max-width: 100vw; border: none; overflow-x: hidden; }
    .lightbox-info-col { padding: 30px 20px; width: 100%; box-sizing: border-box;}
    
    .lightbox-header-row { padding-right: 50px; flex-wrap: wrap; }
    .lightbox-action-col { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; margin-top: 15px;}
    .lightbox-farm-logo { width: 44px; height: 44px; padding: 1px; } 
}