/*
Theme Name: Directory Review Theme
Theme URI: https://example.com/directory-review-theme
Author: DIGITALJUNCTIONLANE
Author URI: https://example.com
Description: A design-led minimalist directory and review theme featuring a 16-column asymmetric grid, three-tone theme switcher (Red/Light/Dark), custom post types for directory listings, and Outfit-style review detail pages with spec selectors, pros/cons breakdowns, and sticky panels.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: directory-review
Tags: custom-colors, custom-menu, featured-images, full-width-template, theme-options, translation-ready, one-column, two-columns
*/

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS & THEME VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg-cream: #EDE4DD;
    --color-red: #FF0001;
    --color-black: #000000;
    --transition-speed: 0.3s;

    --bg-current: var(--bg-cream);
    --text-current: var(--color-red);
    --accent-current: var(--color-black);
    --border-current: rgba(255, 0, 1, 0.2);
}

html[data-theme="red"] {
    --bg-current: var(--bg-cream);
    --text-current: var(--color-red);
    --accent-current: var(--color-black);
    --border-current: rgba(255, 0, 1, 0.25);
}

html[data-theme="light"] {
    --bg-current: var(--bg-cream);
    --text-current: var(--color-black);
    --accent-current: var(--color-red);
    --border-current: rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] {
    --bg-current: var(--color-black);
    --text-current: var(--bg-cream);
    --accent-current: var(--color-red);
    --border-current: rgba(237, 228, 221, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

body {
    background-color: var(--bg-current);
    color: var(--text-current);
    font-family: 'Outfit', sans-serif;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    padding: 0 24px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.font-mono {
    font-family: 'Space Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.site-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    position: sticky;
    top: 0;
    background-color: var(--bg-current);
    transition: background-color var(--transition-speed) ease;
    z-index: 100;
}

.nav-left {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-logo-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.home-logo-link:hover {
    opacity: 0.85;
}

.theme-switcher {
    display: flex;
    gap: 12px;
}

.theme-btn {
    background: none;
    border: 1px solid var(--border-current);
    color: var(--text-current);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
}

.theme-btn:hover {
    background-color: var(--text-current);
    color: var(--bg-current);
}

.theme-btn.active {
    background-color: var(--text-current);
    color: var(--bg-current);
    border-color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-banner-container {
    margin-top: 40px;
    margin-bottom: 60px;
    width: 100%;
    text-align: center;
}

.hero-banner {
    font-size: 9.5vw;
    font-weight: 900;
    letter-spacing: -0.4vw;
    line-height: 0.8;
    text-transform: uppercase;
    margin: 0;
    user-select: none;
    display: inline-block;
    width: 100%;
    white-space: nowrap;
}

.separator-line {
    border: none;
    border-top: 1px solid var(--text-current);
    opacity: 0.9;
    width: 100%;
    margin: 24px 0;
    transition: border-color var(--transition-speed) ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ASYMMETRIC GRID SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
    max-width: 1600px;
    margin: 0 auto 100px auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY BLOCKS (Homepage)
   ═══════════════════════════════════════════════════════════════════════════ */

.category-block {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--text-current);
    padding: 30px;
    background-color: transparent;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.category-block:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 0 var(--text-current);
}

.category-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.category-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.6;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.category-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SITE LINK ROWS (Shared: Homepage & Review Sidebar)
   ═══════════════════════════════════════════════════════════════════════════ */

.site-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-current);
    transition: border-color var(--transition-speed) ease;
}

.site-link-row:last-child {
    border-bottom: none;
}

.site-anchor {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-anchor:hover {
    opacity: 0.7;
}

.active-site-row {
    background-color: var(--text-current);
    color: var(--bg-current);
    padding: 10px 12px;
    margin: 0 -12px;
    border-radius: 2px;
}

.active-site-anchor {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.active-badge {
    background-color: var(--bg-current) !important;
    color: var(--text-current) !important;
    border-color: var(--bg-current) !important;
}

.badges-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.site-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 7px;
    border: 1px solid var(--text-current);
    border-radius: 2px;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.5px;
    transition: border-color var(--transition-speed) ease;
}

.review-badge {
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.review-badge:hover {
    background-color: var(--text-current);
    color: var(--bg-current);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REVIEW PAGE: LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.back-link-container {
    margin-top: 40px;
    margin-bottom: 20px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.review-grid {
    display: grid;
    grid-template-columns: 9fr 7fr;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto 100px auto;
    align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REVIEW PAGE: LEFT COLUMN (Mockup + Category Sidebar)
   ═══════════════════════════════════════════════════════════════════════════ */

.review-left {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.browser-mockup {
    border: 2px solid var(--text-current);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color var(--transition-speed) ease;
}

.mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-current);
    background-color: transparent;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--text-current);
    opacity: 0.4;
    transition: border-color var(--transition-speed) ease;
}

.mockup-url-bar {
    font-size: 0.7rem;
    opacity: 0.6;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.5px;
}

.mockup-viewport {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.mockup-site-name {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REVIEW PAGE: RIGHT COLUMN (Sticky Panel)
   ═══════════════════════════════════════════════════════════════════════════ */

.review-right {
    position: sticky;
    top: 100px;
}

.review-site-name {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.review-rating {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1px;
    opacity: 0.85;
}

/* Option Selectors */
.option-group {
    margin-bottom: 24px;
}

.option-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.7;
}

.option-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.option-btn {
    background: none;
    border: 1.5px solid var(--text-current);
    color: var(--text-current);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 16px;
    cursor: default;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
}

.option-btn.active {
    background-color: var(--text-current);
    color: var(--bg-current);
    border-color: var(--text-current);
}

/* Visit CTA Button */
.visit-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--text-current);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 30px 0;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease, border-color var(--transition-speed) ease;
}

.visit-cta-btn:hover {
    background-color: var(--text-current);
    color: var(--bg-current);
}

.cta-arrow-wrapper {
    display: flex;
    flex-direction: column;
    height: 1.1em;
    overflow: hidden;
    position: relative;
}

.cta-arrow-slide {
    display: block;
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    line-height: 1.1;
}

.visit-cta-btn:hover .cta-arrow-slide {
    transform: translateY(-100%);
}

/* Specs Definition List */
.specs-dl {
    margin-top: 10px;
}

.specs-row {
    padding: 20px 0;
    border-top: 1px solid var(--border-current);
}

.specs-row dt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.7;
}

.specs-row dd {
    font-size: 0.85rem;
    line-height: 1.6;
}

.specs-ul {
    list-style: none;
    font-size: 0.8rem;
    line-height: 1.8;
}

.verdict-p {
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 40px 24px;
    padding-bottom: 60px;
    border-top: 1px solid var(--text-current);
    padding-top: 60px;
    transition: border-color var(--transition-speed) ease;
}

.footer-logo-col {
    grid-column: span 6;
}

.footer-brand {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.75;
    max-width: 380px;
}

.footer-links-col {
    grid-column: span 3;
}

.footer-col-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 30px 0 50px 0;
    border-top: 1px solid var(--border-current);
    font-size: 0.75rem;
    font-family: 'Space Mono', monospace;
    opacity: 0.75;
    transition: border-color var(--transition-speed) ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .asymmetric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }

    .review-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .review-right {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .footer-logo-col {
        grid-column: span 8;
    }

    .footer-links-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 40px 0;
    }

    .hero-banner {
        font-size: 11vw;
    }

    .site-nav {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .review-site-name {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo-col,
    .footer-links-col {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
