/* 
   ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES (LIGHT & DARK THEMES)
   ==========================================================================
*/

:root {
    /* Font Families */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Theme Colors (Light Mode Default) */
    --bg-color: #f8fafc;        /* Very light gray background */
    --bg-accent: #f1f5f9;       /* Slate 100 for sections */
    --card-bg: #ffffff;         /* Pure white cards */
    --card-border: #e2e8f0;     /* Slate 200 */
    --text-primary: #0f172a;    /* Slate 900 */
    --text-secondary: #475569;  /* Slate 600 */
    --text-muted: #64748b;      /* Slate 500 */
    
    /* Brand Accent Colors */
    --primary: #4f46e5;         /* Indigo 600 */
    --primary-hover: #4338ca;   /* Indigo 700 */
    --primary-light: #e0e7ff;   /* Indigo 100 */
    --accent: #0891b2;          /* Cyan 600 */
    --accent-hover: #0e7490;    /* Cyan 700 */
    --accent-light: #ecfeff;    /* Cyan 50 */
    
    /* Feedback Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Shadows & Borders */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-premium: 0 20px 40px -15px rgba(79, 70, 229, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Dark Theme Variables Triggered by Class */
body.dark-theme {
    --bg-color: #0b0f19;        /* Dark navy background */
    --bg-accent: #0f172a;       /* Darker slate */
    --card-bg: #151b2c;         /* Card navy background */
    --card-border: #222d44;     /* Deep slate border */
    --text-primary: #f8fafc;    /* Very light gray text */
    --text-secondary: #94a3b8;  /* Muted slate text */
    --text-muted: #64748b;      /* Slate 500 */
    
    --primary: #6366f1;         /* Indigo 500 */
    --primary-hover: #818cf8;   /* Indigo 400 */
    --primary-light: rgba(99, 102, 241, 0.15);
    --accent: #06b6d4;          /* Cyan 500 */
    --accent-hover: #22d3ee;    /* Cyan 400 */
    --accent-light: rgba(6, 182, 212, 0.15);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-premium: 0 20px 40px -15px rgba(99, 102, 241, 0.2);
}

/* 
   ==========================================================================
   BASE & RESET STYLES
   ==========================================================================
*/

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

/* 
   ==========================================================================
   LAYOUT & UTILITIES
   ==========================================================================
*/

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.hidden {
    display: none !important;
}

/* 
   ==========================================================================
   BUTTON STYLES
   ==========================================================================
*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--card-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--bg-accent);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* 
   ==========================================================================
   NAVBAR & HEADER
   ==========================================================================
*/

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(248, 250, 252, 0.85); /* Light blurred overlay */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-theme .navbar {
    background-color: rgba(11, 15, 25, 0.85);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Switcher Button */
.theme-btn {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-btn:hover {
    background-color: var(--bg-accent);
    color: var(--primary);
    transform: scale(1.05);
}

.theme-btn .sun-icon {
    display: none;
}

.theme-btn .moon-icon {
    display: block;
}

body.dark-theme .theme-btn .sun-icon {
    display: block;
}

body.dark-theme .theme-btn .moon-icon {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    padding: 20px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
}

.mobile-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 0;
}

.mobile-cta {
    width: 100%;
}

/* 
   ==========================================================================
   HERO SECTION
   ==========================================================================
*/

.hero {
    padding: 140px 0 80px 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary);
    border: 1px solid var(--primary-light);
    background-color: var(--card-bg);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 24px auto;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 40px auto;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--card-border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 1.8rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-background-gradient {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, rgba(8, 145, 178, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

body.dark-theme .hero-background-gradient {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(0, 0, 0, 0) 70%);
}

/* 
   ==========================================================================
   QUIZ / SELECTOR SECTION
   ==========================================================================
*/

.quiz-card {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--bg-accent);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.quiz-steps-indicators {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.step-indicator {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background-color: var(--bg-accent);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.step-indicator.active {
    background-color: var(--primary);
    color: #ffffff;
}

.step-indicator.completed {
    background-color: var(--accent);
    color: #ffffff;
}

.quiz-question {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.quiz-option-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.quiz-option-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background-color: var(--bg-accent);
}

.quiz-option-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
    outline: 2px solid var(--primary);
}

.option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.option-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

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

.quiz-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Quiz Results Layout */
.result-header {
    text-align: center;
    margin-bottom: 32px;
}

.celebration-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.result-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.result-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.stack-main-tool {
    position: relative;
    border-left: 5px solid var(--accent);
}

.badge-accent {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.stack-main-tool h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.tool-specs-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
}

.stack-supporting h5 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.supporting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.supporting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-accent);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
}

.sup-details h6 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.sup-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sup-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Workflow steps */
.result-workflow h5 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.workflow-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-steps li {
    position: relative;
    padding-left: 36px;
    font-size: 0.95rem;
}

.workflow-steps li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.quiz-result-footer {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
}

/* 
   ==========================================================================
   COMPARISON SECTION
   ==========================================================================
*/

.compare-section {
    background-color: var(--bg-accent);
}

.comparator-selector-card {
    max-width: 900px;
    margin: 0 auto;
}

.selectors-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.select-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.select-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.vs-divider {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-muted);
    background-color: var(--bg-accent);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.comparison-results-wrapper {
    width: 100%;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

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

.comparison-table th {
    background-color: var(--bg-accent);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
}

.comparison-table th:first-child {
    border-top-left-radius: var(--radius-md);
}

.comparison-table th:last-child {
    border-top-right-radius: var(--radius-md);
}

.comparison-table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.02);
}

.comparison-table td strong {
    color: var(--text-primary);
}

/* 
   ==========================================================================
   PLAYBOOKS SECTION
   ==========================================================================
*/

.playbooks-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.playbook-tabs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.playbook-tab-btn {
    white-space: nowrap;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.playbook-tab-btn:hover {
    background-color: var(--bg-accent);
    border-color: var(--text-muted);
}

.playbook-tab-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.playbook-panels {
    min-height: 300px;
}

.playbook-header {
    margin-bottom: 30px;
}

.playbook-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.playbook-intro-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.playbook-workflow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.step-card {
    background-color: var(--bg-accent);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.step-number {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: rgba(79, 70, 229, 0.15);
}

.step-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-card em {
    background-color: var(--card-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-style: normal;
    font-size: 0.9em;
    color: var(--accent);
}

.playbook-pro-tip {
    background-color: var(--accent-light);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

body.dark-theme .playbook-pro-tip {
    border-color: rgba(6, 182, 212, 0.3);
}

/* 
   ==========================================================================
   DIRECTORY SECTION
   ==========================================================================
*/

.directory-section {
    background-color: var(--bg-accent);
}

.directory-filter-bar {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#dir-search-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 52px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

#dir-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: var(--bg-accent);
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Tool Cards Grid */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.tool-card {
    display: flex;
    flex-direction: column;
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tool-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    background-color: var(--accent-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.tool-rating {
    font-size: 0.85rem;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-name {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.tool-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-meta {
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-price-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tool-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tool-card-cta:hover {
    color: var(--primary-hover);
}

/* 
   ==========================================================================
   FAQ SECTION ACCORDIONS
   ==========================================================================
*/

.faq-container {
    max-width: 800px;
}

.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 0;
}

.faq-question-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 30px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
}

.faq-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content p, .faq-answer-content ul, .faq-answer-content ol {
    padding: 0 30px 24px 30px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.faq-answer-content ul, .faq-answer-content ol {
    padding-left: 54px;
}

/* 
   ==========================================================================
   HOSTINGER CTA BANNER
   ==========================================================================
*/

.cta-banner-hostinger {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 60px 0;
    color: #ffffff;
}

.container-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: center;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.cta-content p {
    font-size: 1.05rem;
    max-width: 800px;
    opacity: 0.9;
}

.cta-action .btn {
    background-color: #ffffff;
    color: var(--primary);
}

.cta-action .btn:hover {
    background-color: var(--bg-color);
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 
   ==========================================================================
   FOOTER
   ==========================================================================
*/

.footer {
    background-color: var(--bg-accent);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-col h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding: 24px 0;
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 
   ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ==========================================================================
*/

@media (min-width: 768px) {
    /* Grids & Layouts */
    .quiz-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .playbook-workflow-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container-cta {
        flex-direction: row;
        text-align: left;
    }

    .footer-container {
        grid-template-columns: 1.5fr 2.5fr;
    }

    .footer-bottom-flex {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    /* Hero */
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
    }

    /* Quiz results */
    .result-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }

    /* Playbooks Layout */
    .playbooks-layout {
        grid-template-columns: 280px 1fr;
    }

    .playbook-tabs {
        flex-direction: column;
        overflow-x: visible;
    }

    .playbook-tab-btn {
        width: 100%;
    }

    /* Directory filter bar */
    .directory-filter-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .search-box {
        max-width: 400px;
    }

    .filter-tags {
        justify-content: flex-end;
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Navbar links on Desktop */
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 991px) {
    /* Navbar links on Mobile */
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* 
   ==========================================================================
   LANGUAGE SELECTOR STYLES
   ==========================================================================
*/

.lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--primary);
}

.lang-divider {
    color: var(--card-border);
    user-select: none;
}

/* 
   ==========================================================================
   CONTACT FORM STYLES
   ==========================================================================
*/

.contact-form-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-contact label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-input-text, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input-text:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.form-textarea {
    resize: vertical;
}

.feedback-success-card {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.feedback-success-card h4 {
    font-size: 1.4rem;
    color: var(--success);
}

.feedback-success-card p {
    color: var(--text-secondary);
    max-width: 500px;
}

