/*
Theme Name: Apina
Theme URI: https://apina.se
Author: Apina Team
Author URI: https://apina.se
Description: Ett ljust, elegant och avslappnat tidningstema med inspiration från Vice News, Kvartal och Clarté
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apina
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #5CB8B2;
    --color-secondary: #F4A261;
    --color-accent: #E76F51;
    --color-light: #FAF9F6;
    --color-cream: #F5F1E8;
    --color-white: #FFFFFF;
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-border: #E5E5E5;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

body {
    font-family: var(--font-sans);
    background: var(--color-cream);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-primary);
    letter-spacing: 0;
    text-transform: none;
}

.site-logo:hover {
    color: var(--color-accent);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    font-weight: 500;
    text-transform: none;
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--color-text);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    margin: 3rem 0;
}

.hero-article {
    position: relative;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hero-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 2;
}

.category-tag {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-radius: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-white);
}

.hero-excerpt {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    line-height: 1.6;
}

.hero-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Content Sections */
.content-section {
    margin: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text);
}

.view-all-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-primary);
}

.view-all-link:hover {
    color: var(--color-accent);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(92, 184, 178, 0.2);
}

.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.8rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--color-text);
}

.article-title a {
    color: inherit;
}

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

.article-excerpt {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

/* Single Post */
.single-post {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.post-meta {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin: 2.5rem 0 1.2rem;
    color: var(--color-text);
}

.post-content h3 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--color-text);
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    margin-top: 5rem;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: var(--color-text-light);
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 3rem 0;
}

.page-numbers {
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-logo {
        font-size: 1.8rem;
    }
    
    .hero-article {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-excerpt {
        font-size: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-text-muted); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }

/* Extra Styling for Relaxed Feel */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

img {
    border-radius: 8px;
}

a {
    transition: color 0.3s ease;
}

/* Wavy Decorative Elements (optional) */
.wave-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--color-cream);
    clip-path: ellipse(100% 100% at 50% 0%);
}

/* Rounded Category Tags */
.article-card .category-tag {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* Smooth Animations */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

button, .button, input[type="submit"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

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