/* Point Buy Calculator - Main Styles */

/* CSS Variables for theming */
:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #DBEAFE;
    --surface: #FFFFFF;
    --background: #F8FAFC;
    --text: #111827;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --success: #16A34A;
    --warning: #DC2626;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.375rem;
    --radius-lg: 0.5rem;
    --container-max-width: 1200px;
    --nav-height: 64px;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --surface: #1F2937;
        --background: #111827;
        --text: #F9FAFB;
        --text-muted: #D1D5DB;
        --text-light: #9CA3AF;
        --border: #374151;
        --border-light: #374151;
        --primary-light: #1E3A8A;
    }
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* Container and layout utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text);
}

.logo {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background-color: var(--primary);
    text-decoration: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--text);
    transition: all 0.15s ease;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    background-color: var(--border-light);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb span {
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    text-decoration: none;
}

.btn-ghost {
    background-color: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background-color: var(--border-light);
    color: var(--text);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn span {
    font-size: 1.1em;
    line-height: 1;
}

/* Hero section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Features section */
.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.post-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

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

.post-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Calculator specific styles */
.calculator-section {
    padding: 2rem 0 4rem;
}

.calculator-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.calculator-container {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.points-display {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.points-spent,
.points-remaining {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.points-spent span:last-child,
.points-remaining span:last-child {
    font-size: 1.25rem;
    font-weight: 600;
}

.points-remaining span:last-child {
    color: var(--success);
}

.points-remaining.over-budget span:last-child {
    color: var(--warning);
}

.calculator-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calculator-controls label {
    font-weight: 500;
    color: var(--text-muted);
}

.calculator-controls input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--text);
}

/* Abilities grid */
.abilities-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ability-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.ability-label {
    font-weight: 500;
    color: var(--text);
}

.ability-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ability-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background-color: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ability-btn:hover:not(:disabled) {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.ability-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ability-slider {
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.ability-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.ability-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.ability-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    justify-content: center;
}

.base-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.modifier {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bonus-value {
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 600;
}

.ability-cost {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    min-width: 60px;
}

/* Calculator options */
.calculator-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 600;
}

#bonus-selectors {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

#bonus-selectors select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    color: var(--text);
    min-width: 140px;
}

/* Calculator actions */
.calculator-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Ad slots */
.ad-slot {
    background-color: var(--border-light);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-radius: var(--radius);
    position: relative;
}

.ad-slot::after {
    content: 'Advertisement';
    opacity: 0.5;
}

/* How to use section */
.how-to-use {
    padding: 4rem 0;
    background-color: var(--surface);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* SEO content styling */
.seo-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.seo-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

/* FAQ styles */
.faq-section {
    padding: 2rem 0 4rem;
}

.faq-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-item p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.faq-item:last-child {
    margin-bottom: 0;
}

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

.faq-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.faq-footer h2 {
    margin-bottom: 1rem;
}

.faq-footer p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Guide styles */
.guide-content {
    padding: 2rem 0 4rem;
}

.guide-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.125rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guide-nav {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.guide-nav h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.guide-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.guide-nav a {
    color: var(--primary);
    font-weight: 500;
}

.rules-box {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius);
}

.rules-box h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.cost-table th,
.cost-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.cost-table th {
    background-color: var(--background);
    font-weight: 600;
    color: var(--text);
}

.cost-table td {
    color: var(--text-muted);
}

.steps-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-detail {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.step-detail h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.class-builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.class-build {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.class-build h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.example-build {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.example-build h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.mistakes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mistake {
    background-color: var(--surface);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.mistake h3 {
    color: var(--warning);
    margin-bottom: 0.75rem;
}

.guide-conclusion {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.guide-conclusion h2 {
    margin-bottom: 1rem;
}

.guide-conclusion p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Blog styles */
.blog-header {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
}

.blog-intro {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.tip-box,
.warning-box {
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--success);
    background-color: var(--surface);
}

.warning-box {
    border-left-color: var(--warning);
}

.tip-box h4,
.warning-box h4 {
    color: var(--success);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.warning-box h4 {
    color: var(--warning);
}

.comparison-table {
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.comparison-table th {
    background-color: var(--background);
    font-weight: 600;
    color: var(--text);
}

/* Contact styles */
.contact-section {
    padding: 2rem 0 4rem;
}

.contact-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-form-container {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.contact-note {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--background);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-method {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.contact-method p {
    margin-bottom: 0.5rem;
}

.contact-method ul {
    margin-left: 1rem;
    color: var(--text-muted);
}

.response-time,
.community-links {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.community-links ul {
    margin-left: 1rem;
}

.community-links li {
    margin-bottom: 0.5rem;
}

/* Privacy and Terms styles */
.privacy-section,
.terms-section {
    padding: 2rem 0 4rem;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 3rem;
    text-align: center;
}

.privacy-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content section,
.terms-content section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.privacy-content section:last-child,
.terms-content section:last-child {
    border-bottom: none;
}

.privacy-content h2,
.terms-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.privacy-content h3,
.terms-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info {
    background-color: var(--background);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
    font-size: 0.875rem;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .footer-nav {
        gap: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .calculator-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .points-display {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .ability-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .ability-controls {
        justify-content: center;
    }
    
    .calculator-actions {
        flex-direction: column;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .calculator-container {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Focus management for accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline-color: var(--primary);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-muted: var(--text);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .ad-slot,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}
