/* Premium CSS for Street-Legal UTV Hub */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #090d16;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(31, 41, 55, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(249, 115, 22, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-orange: #ff6b00;
    --accent-orange-hover: #e05e00;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image: 
        radial-gradient(at 0% 0%, rgba(249, 115, 22, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-primary);
}

/* Navigation Layout */
header {
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-orange);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-orange), #f43f5e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Page Layout Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3.5rem 1rem;
    margin-bottom: 3rem;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.badge {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--accent-orange);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Interactive Wizard Card */
.wizard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
}

.wizard-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.wizard-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.wizard-progress-bar {
    height: 100%;
    width: 33%;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
}

.wizard-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.option-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.option-box.selected {
    background: rgba(249, 115, 22, 0.08);
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.1);
}

.option-box input[type="radio"] {
    display: none;
}

.option-box .option-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.option-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.option-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.check-label {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.check-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.check-label input {
    accent-color: var(--accent-orange);
    width: 18px;
    height: 18px;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.select-dropdown {
    width: 100%;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 2rem;
    outline: none;
    transition: var(--transition);
}

.select-dropdown:focus {
    border-color: var(--accent-orange);
}

/* Wizard Results Page */
.results-box {
    text-align: left;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.status-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-legal {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-warning {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-illegal {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.results-section {
    margin-bottom: 1.5rem;
}

.results-section h4 {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-list {
    list-style: none;
}

.results-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.results-list li.missing::before {
    content: '✕';
    color: #f43f5e;
    font-weight: 900;
}

.results-list li.has::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 900;
}

/* State Directory Grid */
.directory-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1.8rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-orange);
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.state-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
}

.state-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.state-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.state-card .status-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Two-Column Content Layout (State Pages/Articles) */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

.content-area article {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.content-area p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-area h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem 0;
}

.content-area h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
}

.content-area ul, .content-area ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.content-area li {
    margin-bottom: 0.5rem;
}

/* Info Alert Callout */
.info-box {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    color: var(--text-primary);
}

.info-box h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    font-size: 1.05rem;
}

.info-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* State Fact Table */
.fact-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.fact-table th, .fact-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.fact-table th {
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.fact-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-container {
    margin-top: 3rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-orange);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    background: transparent;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 1000px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Sidebar Layout */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-list a:hover {
    color: var(--accent-orange);
}

.sidebar-list a::before {
    content: '→';
    color: var(--accent-orange);
}

/* Footer Section */
footer {
    background: #06090e;
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .wizard-card {
        padding: 1.5rem;
    }
}

/* Print Styling for the PDF/Print Layout */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    header, footer, .btn, .wizard-progress, .sidebar, .faq-container {
        display: none !important;
    }
    
    .main-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .layout-grid {
        grid-template-columns: 1fr !important;
    }
    
    .content-area article {
        color: black !important;
    }
    
    .info-box {
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
        color: black !important;
    }
    
    .fact-table th {
        background: #eee !important;
        color: black !important;
        border-bottom: 2px solid black !important;
    }
    
    .fact-table td {
        color: black !important;
        border-bottom: 1px solid #ccc !important;
    }
}
