/* public_html/style.css - VERSION 2.3 (UX FIX: TRUE AFFORDANCE) */

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --primary-teal: #03dac6;
    --accent-purple: #bb86fc;
    --accent-blue: #2196f3;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --space-md: 25px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    padding: 0; 
    padding-top: 60px;
}

/* OVERRIDE: Full Screen Apps */
body.fullscreen-app { padding-top: 0 !important; overflow: hidden; }

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--primary-teal); }

/* --- 2. LAYOUT CONTAINERS --- */
.container {
    width: 94%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.splash-container {
    max-width: 1200px;
    min-height: 80vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 90vh;
}

/* --- 3. UNIVERSAL TOP BAR --- */
.top-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 50px;
    background: rgba(10, 10, 10, 0.95); 
    border-bottom: 1px solid #333;
    display: flex; align-items: center; padding: 0 20px;
    z-index: 1000; backdrop-filter: blur(5px);
}

.back-link {
    font-size: 0.85rem; font-weight: bold; text-transform: uppercase;
    color: var(--text-dim); letter-spacing: 1px; cursor: pointer;
}
.back-link:hover { color: var(--primary-teal); }

/* --- 4. TYPOGRAPHY --- */
.page-header { text-align: center; margin: 40px 0 40px 0; }

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase; letter-spacing: 1px;
    margin: 0 0 10px 0; color: white; font-weight: 900; line-height: 1.1;
}

.page-subtitle {
    color: var(--primary-teal); font-size: 1rem;
    text-transform: uppercase; font-weight: bold; letter-spacing: 3px; margin: 0;
}

h2, .section-title {
    font-size: 1.5rem; color: var(--primary-teal);
    margin-top: 40px; margin-bottom: 20px;
    text-transform: uppercase; border-left: 4px solid var(--primary-teal);
    padding-left: 15px;
}

h3 { font-size: 1.2rem; color: white; margin-top: 0; margin-bottom: 10px; font-weight: 800; }
p, li { color: var(--text-dim); font-size: 1rem; }
strong { color: white; }

/* --- 5. COMPONENT: BOXES --- */
.feature-box, .content-box {
    background: var(--card-bg);
    border: 1px solid #333;
    border-left: 4px solid var(--primary-teal);
    padding: 25px; margin-bottom: 30px; border-radius: 8px;
}
.feature-box.purple, .content-box { border-left-color: var(--accent-purple); background: rgba(187, 134, 252, 0.05); }
.feature-box.blue { border-left-color: var(--accent-blue); background: rgba(33, 150, 243, 0.05); }

.feature-box h3, .content-box h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-box p, .content-box p { font-size: 0.95rem; margin: 0; }

/* --- 6. SPECIALTY COMPONENTS --- */

/* Timeline (Practitioners) */
.timeline-box { border-left: 2px solid #333; padding-left: 20px; margin-left: 10px; }
.timeline-box div { position: relative; margin-bottom: 30px; }
.timeline-box div::before {
    content: ''; position: absolute; left: -26px; top: 5px; width: 10px; height: 10px;
    background: var(--primary-teal); border-radius: 50%;
}

/* Key Scenes Focus Box */
.focus-list { 
    background: rgba(3, 218, 198, 0.05);
    padding: 20px; border-radius: 8px; margin-top: 20px; 
    border-left: 3px solid var(--primary-teal);
}
.focus-list strong {
    color: var(--primary-teal); display: block; margin-bottom: 10px;
    text-transform: uppercase; font-size: 0.9rem;
}
.focus-list ul { margin: 0; padding-left: 20px; }
.focus-list li { margin-bottom: 10px; color: #ccc; font-size: 0.95rem; }

/* Step Section (Research Log) */
.step-section {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px; margin-bottom: 30px;
    position: relative; overflow: hidden;
}
.step-number {
    position: absolute; top: -10px; right: -10px;
    font-size: 6rem; font-weight: 900;
    color: rgba(255,255,255,0.03); pointer-events: none;
}

/* Tips & CTA */
.tip-container {
    background: #1a1800; border: 1px solid #665c00;
    padding: 20px; border-radius: 8px; margin-top: 30px;
}
.tip-header { color: #ffca28; font-weight: bold; margin-bottom: 10px; text-transform: uppercase; font-size: 0.9rem; }

.cta-box {
    text-align: center; background: var(--card-bg);
    border: 1px solid var(--accent-purple);
    padding: 30px; border-radius: 12px; margin: 40px 0;
}
.btn-dark {
    display: inline-block; background: white; color: black;
    padding: 10px 25px; border-radius: 50px; font-weight: bold; margin-top: 15px;
}
.btn-dark:hover { background: var(--primary-teal); }

/* --- 7. GRIDS --- */
.info-grid, .nav-grid, .texts-grid, .compact-grid, .term-grid, .quote-grid {
    display: grid; gap: 20px; width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 40px;
}

.quad-grid, .splash-grid {
    display: grid; gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 0 auto; max-width: 1000px;
}

/* Specific Layout for Devising Hub */
.grid-home {
    display: grid; gap: 30px; width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 40px;
}

/* --- 8. CARDS (UPDATED FOR TRUE AFFORDANCE) --- */
.card, .nav-card, .play-card, .splash-card, .compact-card, .term-item, .checklist-card, .portfolio-card, .scene-card, .quote-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px; padding: 25px; 
    transition: all 0.2s ease;
    display: flex; flex-direction: column; height: 100%; text-align: left;
}

/* THE FIX: Only apply hover states if the element is an anchor <a> tag (a link) */
a.card:hover, a.nav-card:hover, a.play-card:hover, a.splash-card:hover, a.compact-card:hover, a.portfolio-card:hover, a.scene-card:hover {
    border-color: var(--primary-teal);
    transform: translateY(-4px); 
    background: #1f1f1f;
    cursor: pointer;
}

.nav-icon, .card-icon, .play-image, .splash-icon, .check-icon, .scene-icon {
    font-size: 2.5rem; color: var(--primary-teal);
    margin-bottom: 15px; line-height: 1;
}

/* Horizontal Cards */
.play-card, .compact-card, .checklist-card {
    flex-direction: row; align-items: center; gap: 20px; padding: 20px;
}
.play-card .play-image, .compact-card .nav-icon, .checklist-card .check-icon { 
    margin-bottom: 0; min-width: 50px; text-align: center; 
}
.checklist-card .check-content h3 { margin-top: 0; font-size: 1.1rem; }

/* Specific Card Tweaks */
.portfolio-card { align-items: center; text-align: center; min-height: 250px; justify-content: center; }
.portfolio-card .nav-icon { font-size: 4rem; margin-bottom: 15px; }

.scene-card { border-bottom: 4px solid var(--primary-teal); }
.scene-title { display: flex; align-items: center; gap: 15px; font-size: 1.3rem; margin-top: 0; }
.scene-icon { font-size: 1.5rem; margin-bottom: 0; background: #222; padding: 10px; border-radius: 50%; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center;}

/* --- 9. BUTTONS & FILTERS --- */
.filter-nav, .act-nav, .char-nav, .concept-buttons, .filter-container {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px;
}

.action-btn, .filter-btn, .act-btn, .concept-btn {
    background: transparent; color: #888; border: 1px solid #444;
    padding: 8px 20px; border-radius: 50px; font-weight: bold;
    text-transform: uppercase; font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
}

.action-btn:hover, .filter-btn:hover, .act-btn:hover, .concept-btn:hover {
    border-color: var(--primary-teal); color: white;
}

.action-btn.active, .filter-btn.active, .act-btn.active, .concept-btn.active {
    background: var(--primary-teal); color: black; border-color: var(--primary-teal);
    box-shadow: 0 0 15px rgba(3, 218, 198, 0.3);
}

/* --- 10. MISC & MOBILE --- */
.tag, .board-tag {
    display: inline-block; font-size: 0.7rem; background: #333;
    color: var(--primary-teal); padding: 3px 8px; border-radius: 4px;
    font-weight: bold; margin-bottom: 8px; text-transform: uppercase;
}

@media (max-width: 768px) {
    .page-header { margin-top: 20px; }
    h1 { font-size: 2rem; }
    .feature-box, .step-section { padding: 20px; }
    
    .quad-grid, .splash-grid, .texts-grid, .info-grid, .term-grid, .nav-grid, .compact-grid, .grid-home {
        grid-template-columns: 1fr;
    }
    
    .play-card, .compact-card, .checklist-card { padding: 15px; }
    .app-container { padding: 15px; }
}