/* ==========================================
   Dagsvers - Mobilanpassad
   ========================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Färgschema - blå/gröna toner */
    --primary-blue: #2563eb;
    --primary-green: #10b981;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --hover-bg: #f1f5f9;
    --shadow: rgba(0, 0, 0, 0.1);
    --accent-purple: #8b5cf6;
    
    /* Typografi */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

body {
    font-family: var(--font-main);
    font-weight: var(--font-weight-normal);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
}

header h1 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

header h1 .initial {
    font-size: 2.25rem;
}

header h1 .domain {
    text-transform: lowercase;
}

header .subtitle {
    font-size: 0.9rem;
    font-weight: var(--font-weight-normal);
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Content Area */
.content {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Vers Container (Article) */
.vers-container {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px var(--shadow);
    border-left: 4px solid var(--primary-green);
}

.vers-container:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

/* Vers List & Preview */
.vers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vers-preview {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px var(--shadow);
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.vers-preview:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.vers-preview .excerpt {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 1rem 0;
}

.vers-preview .read-more {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.vers-preview .read-more:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Archive Links */
.archive-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: var(--white);
    transition: all 0.2s ease;
}

.archive-link:hover {
    color: var(--white);
    background: var(--primary-blue);
}

/* Vers Header */
.vers-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.vers-header h2 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.vers-header time {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* Vers Content */
.vers-content {
    margin-bottom: 1.5rem;
}

.vers-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.vers-content p:last-child {
    margin-bottom: 0;
}

/* Vers Footer */
.vers-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.vers-footer .author {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.vers-footer .inspiration {
    margin-top: 1rem;
}

.vers-footer .inspiration p {
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
}

.vers-footer .inspiration a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    transition: color 0.2s ease;
}

.vers-footer .inspiration a:last-child {
    margin-bottom: 0;
}

.vers-footer .inspiration a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto;
}

footer p {
    font-size: 0.875rem;
    line-height: 1.6;
}

footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==========================================
   Desktop Layout (768px och uppåt)
   ========================================== */
@media (min-width: 768px) {
    header h1 {
        font-size: 2.25rem;
    }
    
    header h1 .initial {
        font-size: 3rem;
    }
    
    header .subtitle {
        font-size: 1rem;
    }
    
    main {
        padding: 3rem 2rem;
    }
    
    .content {
        padding: 2rem;
    }
    
    .vers-container {
        padding: 2rem;
    }
    
    .vers-header h2 {
        font-size: 1.75rem;
    }
    
    footer p {
        font-size: 0.9375rem;
    }
}

/* ==========================================
   Stora skärmar (1024px och uppåt)
   ========================================== */
@media (min-width: 1024px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    main {
        padding: 4rem 3rem;
    }
    
    .content {
        padding: 2.5rem;
    }
    
    .vers-header h2 {
        font-size: 2rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */

/* Section titles */
.section-title {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: var(--font-weight-bold);
}

/* Archive section */
.archive-section {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--hover-bg);
    border-radius: 8px;
}

.archive-title {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: var(--font-weight-semibold);
    text-align: center;
}

/* Year groups */
.year-group {
    margin-bottom: 2rem;
}

.year-group:last-child {
    margin-bottom: 0;
}

.year-group h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.month-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.month-links a {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.month-links a:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Month list (for year pages) */
.month-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.month-link {
    display: block;
    padding: 1rem;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.month-link:hover {
    background: var(--hover-bg);
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.year-summary {
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
}

.archive-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
