@font-face {
    font-family: 'Raleway Medium';
    src: url('../fonts/raleway-medium.ttf') format('truetype');
}

*, *::before, *::after {
    box-sizing: border-box;
    font-family: 'Raleway Medium';
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway Medium';
    width: 100% !important;
    min-width: 100% !important;
    overflow-x: hidden !important;
    background-color: #0e0e0e;
    color: #e0e0e0;
}

body {
    text-align: center;
    padding-top: 20px; /* Reduced from 50px to accommodate new header card */
    margin: 0;
}

input {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 16px;
    transition: border 0.3s;
    font-family: 'Raleway Medium';
}

input:focus {
    border: 1px solid #3498DB;
    outline: none;
}

.container {
    border-radius: 8px;
    margin: auto;
    margin-bottom: 120px;
    padding: 20px 20px 20px;
    width: 80%;
    max-width: 1200px;
}

.title {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: #e0e0e0;
    letter-spacing: 1px;
    margin-left: 8px;
}

.highlight {
    color: var(--circle-primary-color, #D4AF37);
    font-weight: bold;
}

.accent {
    color: var(--circle-primary-color, #D4AF37);
    font-weight: bold;
    text-shadow: none;
}

.tagline {
    margin: 0;
    color: #7F8C8D;
    font-size: 1em;
}

/* Basic heading styles */
h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    color: #e0e0e0;
}

h2 {
    margin: 20px 0;
    font-size: 1.5em;
    color: #e0e0e0;
}

h3 {
    margin: 10px 0;
    color: #7F8C8D;
}

/* Content styles that aren't card-specific */
.container.roadmap {
    background-color: #0e0e0e;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    margin: auto;
    margin-bottom: 120px;
    width: 80%;
    max-width: 800px;
}

.container.roadmap h1, .container.roadmap h2, .container.roadmap h3 {
    color: #e0e0e0;
}

.container.roadmap ul {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Basic styling for links across the site */
a {
    color: #62c8f3; /* Distinct blue color that stands out from the gold accents */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px dotted rgba(98, 200, 243, 0.5);
    padding-bottom: 1px;
}

a:hover {
    color: #8cd5f7; /* Lighter blue on hover */
    border-bottom: 1px solid #8cd5f7;
    text-shadow: 0 0 1px rgba(98, 200, 243, 0.4);
}

a:focus {
    outline: 2px solid rgba(98, 200, 243, 0.5);
    outline-offset: 2px;
}

/* Override link styling for special cases where we don't want the dotted underline */
.navbar-link, 
.header-card a, 
.footer-card a,
.resource-link,
.guide-button,
.request-button,
.suggest-button,
button a,
.card-action a {
    border-bottom: none;
    text-shadow: none;
    padding-bottom: 0;
}

.navbar-link:hover, 
.header-card a:hover, 
.footer-card a:hover,
.resource-link:hover,
.guide-button:hover,
.request-button:hover,
.suggest-button:hover,
button a:hover,
.card-action a:hover {
    border-bottom: none;
}

/* This is an exception - preserve gold color for buttons and action links that should match the theme */
.resource-link,
.guide-button,
.request-button,
.suggest-button,
.de-button,
.compare-button,
.preset-button,
.filter-button.active {
    color: var(--circle-primary-color, #D4AF37); /* Keep gold color for buttons */
}

/* Basic responsive adjustments */
@media (max-width: 600px) {
    .container {
        width: 95%;
    }
}

/* Header styles */
header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 10px;
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.header-logo {
    height: 70px;
    width: 70px;
    margin-right: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    position: relative;
    top: -3px; /* Move logo up by adjusting top position */
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: #e0e0e0;
    letter-spacing: 1px;
    margin-left: 8px;
}

.highlight {
    color: var(--circle-primary-color, #D4AF37);
    font-weight: bold;
}

.accent {
    color: var(--circle-primary-color, #D4AF37);
    font-weight: bold;
    text-shadow: none;
}

.tagline {
    font-size: 1.2rem;
    color: #aaa;
    font-style: italic;
    margin-bottom: 20px;
}

/* Search icon (only the non-card part) */
.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: all 0.25s ease;
}

/* Change color on focus/hover of the search bar */
#search-bar:focus + .search-icon svg, 
#search-bar:hover + .search-icon svg {
    color: var(--circle-primary-color, #D4AF37);
}

/* Mobile responsiveness for header */
@media (max-width: 600px) {
    .title {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .title {
        font-size: 2rem;
    }
}

/* Keyboard Navigation Improvements */
/* Remove focus outline from content sections while keeping accessibility */
.content-section:focus,
.distro-card:focus,
.resource-section:focus,
.guides-section:focus,
.resource-card:focus,
.guide-card:focus,
[tabindex]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Add scroll padding to all scrollable elements to account for sticky navbar */
html {
    scroll-padding-top: 120px; /* Adjust based on navbar height */
    scroll-behavior: smooth;
}

/* Fix for content jumping under navbar when using keyboard navigation */
[id]:target {
    padding-top: 100px;
    margin-top: -80px;
}

/* Improve keyboard accessibility while removing visible outlines */
.content-section:focus-visible,
.distro-card:focus-visible,
.resource-section:focus-visible,
.guides-section:focus-visible {
    box-shadow: 0 0 0 2px var(--circle-primary-color, #D4AF37) !important;
    border-color: var(--circle-primary-color, #D4AF37) !important;
}

/* Ensure all interactive elements have appropriate focus states for accessibility */
button:focus,
a:focus,
select:focus,
input:focus {
    outline: 2px solid var(--circle-primary-color, #D4AF37);
    outline-offset: 2px;
}

/* Hide outline on mouse click, but keep for keyboard navigation */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
select:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure all content pages have consistent scrolling behavior */
.content-page {
    padding-top: 20px;
}