/**
 * Typography Improvements for WildRover
 * Better spacing, readability, and hierarchy
 * Version: 1.0.0
 * Date: June 22, 2025
 */

/* Global Typography Reset */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
}

h5 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

h6 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Paragraph Spacing */
p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Lead Paragraph */
.lead,
p.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 300;
    color: #555;
}

/* Links */
a {
    color: #2e7d32;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Blockquotes */
blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #2e7d32;
    background-color: #f8f9fa;
    font-style: italic;
}

/* Trek Archive Specific Typography */
.trek-archive-page .archive-header {
    text-align: center;
    padding: 3rem 0;
    background-color: #f8f9fa;
    margin-bottom: 3rem;
}

.trek-archive-page .archive-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.trek-archive-page .archive-description {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter System Typography */
.trek-filters {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.trek-filters label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trek-filters select,
.trek-filters input[type="text"] {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
}

/* Trek Card Typography */
.trek-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.trek-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.trek-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #2e7d32 0%, #4CAF50 100%);
    color: white;
}

.trek-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.trek-card-header .trek-county {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.trek-card-body {
    padding: 1.5rem;
}

.trek-card-body p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.trek-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.trek-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trek-meta-item strong {
    font-weight: 600;
    color: #333;
}

/* Button Typography */
.button,
.btn,
.wp-block-button__link {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 1rem 2rem;
}

/* Mobile Typography Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    .trek-archive-page .archive-title {
        font-size: 2.5rem;
    }
    
    .trek-card-header h3 {
        font-size: 1.25rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #666;
}

.text-small {
    font-size: 0.875rem;
}

.text-large {
    font-size: 1.125rem;
}

.font-weight-normal {
    font-weight: 400;
}

.font-weight-medium {
    font-weight: 500;
}

.font-weight-bold {
    font-weight: 700;
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

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

/* Content Readability */
.content-area {
    max-width: 65ch;
    margin: 0 auto;
}

.content-area p,
.content-area li {
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Form Typography */
form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    font-size: 1rem;
    line-height: 1.5;
    font-family: inherit;
}

/* Table Typography */
table {
    font-size: 0.9375rem;
    line-height: 1.5;
}

th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Code Typography */
code {
    font-family: "SF Mono", Monaco, Inconsolata, "Fira Code", monospace;
    font-size: 0.875em;
    background-color: #f4f4f4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre {
    font-family: "SF Mono", Monaco, Inconsolata, "Fira Code", monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}