/**
 * Main stylesheet for Runpiper
 * Uses IBM Plex Sans (body) and IBM Plex Serif (headings)
 */

/* Container and layout utilities */
/* Note: Container responsive styles are defined in responsive.css */

/* Header styles */
header {
    width: 100%;
    max-width: 100%;
    border-left: 1px dashed #e5dcc8;
    border-right: 1px dashed #e5dcc8;
    margin-left: auto;
    margin-right: auto;
    position: sticky;
    top: 0;
    background: rgba(252, 245, 229, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

/* Extended horizontal border for header */
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    border-top: 1px dashed #e5dcc8;
}

.navigation {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    flex: 0 0 auto;
}

.site-name {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    border: none;
    display: inline-block;
    padding-bottom: 0.75rem;
    transition: opacity 0.2s ease;
}

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

.site-definition {
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-size: 0.75rem;
}

.site-definition em {
    font-style: italic;
    color: #888;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    border: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #007bff;
    opacity: 1;
}

/* Hamburger menu button - hidden by default (desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-icon {
    position: relative;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: background 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: transform 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Hamburger animation when open */
.nav-toggle.open .hamburger-icon {
    background: transparent;
}

.nav-toggle.open .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0rem;
}

nav a {
    border: none;
    font-weight: 400;
}

nav a:hover {
    opacity: 1;
    color: #007bff;
}

/* Hero section */
.hero {
    text-align: left;
}

.hero .container {
}

.hero h1 {
    padding-top: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #4a4a4a;
}

/* Content sections */
.section {
}

.section-dark {
    color: #1a1a1a;
}

.section-dark h2,
.section-dark h3 {
    color: #1a1a1a;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    background: white;
    border: 1px dashed #e5dcc8;
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
    opacity: 1;
}

/* Footer */
footer {
    width: 100%;
    max-width: 100%;
    text-align: left;
    border-left: 1px dashed #e5dcc8;
    border-right: 1px dashed #e5dcc8;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    padding: 2rem 1rem;
    font-size: 0.875rem;
    color: #666;
    position: relative;
}

/* Extended horizontal border for footer */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    border-top: 1px dashed #e5dcc8;
}

/* Utility classes */
.text-muted {
    color: #666;
}

.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.mt-3 {
    margin-top: 1.5rem;
}
.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}
.mb-4 {
    margin-bottom: 2rem;
}

/* Responsive max-widths for header and footer to match main */
@media (min-width: 768px) {
    header,
    footer {
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    header,
    footer {
        max-width: 960px;
    }
}

@media (min-width: 1440px) {
    header,
    footer {
        max-width: 1200px;
    }
}

/* Note: Responsive breakpoints are defined in responsive.css */
