/*
Theme Name: Einar Rosa
Theme URI: https://einarbrandsdal.no
Author: Einar Øgrey Brandsdal
Author URI: https://einarbrandsdal.no
Description: Personlig tema for Einar Øgrey Brandsdal med BliVakker rosa profil.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: einar-rosa
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --pink: #E91E8C;
    --pink-light: #fce4f3;
    --pink-dark: #b5146d;
    --dark: #1a1a1a;
    --gray: #555;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --max-width: 1100px;
    --font-main: 'Georgia', serif;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: #000000;
    background: var(--white);
    line-height: 1.7;
    font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #000000; text-decoration: none; }
a:hover { color: var(--pink-dark); text-decoration: underline; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER === */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--pink);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(233,30,140,0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--pink);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: #000000;
}

.site-logo a:hover .logo-text { color: var(--pink); }
.site-logo a:hover { text-decoration: none; }

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: #000000;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-nav a:hover { color: var(--pink); text-decoration: none; }

/* === HERO === */
.hero {
    background: var(--pink-light);
    padding: 72px 24px 60px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #000000;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: #000000;
    max-width: 560px;
    margin: 0 auto;
}

/* === CONTENT SECTIONS === */
.content-section {
    padding: 60px 24px;
}

.content-section.alt {
    background: var(--light-gray);
}

.content-section h2 {
    font-size: 1.6rem;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pink-light);
}

.content-section p {
    margin-bottom: 18px;
    color: #000000;
    max-width: 780px;
}

/* === QUOTE BLOCK === */
.pink-quote {
    border-left: 5px solid var(--pink);
    background: var(--pink-light);
    padding: 24px 28px;
    margin: 36px 0;
    border-radius: 0 8px 8px 0;
    max-width: 780px;
}

.pink-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: #000000;
    margin-bottom: 8px !important;
}

.pink-quote cite {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 600;
    font-style: normal;
}

/* === POSTS SECTION === */
.posts-section {
    padding: 60px 24px;
    background: var(--white);
}

.posts-section h2 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 36px;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.post-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
    box-shadow: 0 6px 24px rgba(233,30,140,0.12);
    transform: translateY(-3px);
}

.post-card-content {
    padding: 20px;
}

.post-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card h3 a { color: #000000; }
.post-card h3 a:hover { color: var(--pink); text-decoration: none; }

.post-card .post-meta {
    font-size: 0.82rem;
    color: #555555;
    margin-bottom: 10px;
}

.post-card .post-excerpt {
    font-size: 0.93rem;
    color: #000000;
    margin-bottom: 14px;
}

.read-more {
    display: inline-block;
    background: var(--pink);
    color: var(--white);
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.read-more:hover {
    background: var(--pink-dark);
    color: var(--white);
    text-decoration: none;
}

/* === SINGLE POST === */
.single-post {
    max-width: 780px;
    margin: 48px auto;
    padding: 0 24px;
}

.single-post h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.single-post .post-meta {
    color: #555555;
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.single-post .post-content p { margin-bottom: 20px; color: #000000; }
.single-post .post-content h2 { color: #000000; margin: 32px 0 14px; }
.single-post .post-content h3 { color: #000000; margin: 24px 0 10px; }

/* === FOOTER === */
.site-footer {
    background: var(--dark);
    color: #ccc;
    text-align: center;
    padding: 40px 24px 32px;
    margin-top: 60px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 18px;
}

.footer-social a {
    color: #aaa;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.footer-social a:hover { color: var(--pink); text-decoration: none; }

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 14px;
}

.footer-links a {
    color: #000000;
    font-size: 0.88rem;
}

.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-copy {
    font-size: 0.82rem;
    color: #888;
    margin-top: 0;
}

.site-footer a { color: var(--pink); }
.site-footer p { font-size: 0.9rem; margin-top: 8px; }

/* === PAGINATION === */
.pagination {
    text-align: center;
    padding: 32px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    font-weight: 600;
}

.pagination a {
    background: var(--pink);
    color: var(--white);
}

.pagination span.current {
    background: var(--pink-light);
    color: #000000;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .site-nav ul { gap: 16px; }
    .hero { padding: 48px 16px 40px; }
    .posts-grid { grid-template-columns: 1fr; }
}

/* === INNHOLD FRA SIDEREDIGERER === */
.page-content .wp-block-image {
    margin: 28px 0;
    border-radius: 10px;
    overflow: hidden;
}

.page-content .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.page-content h2 {
    font-size: 1.6rem;
    color: #000000;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pink-light);
}

.page-content h3 {
    font-size: 1.25rem;
    color: #000000;
    margin: 28px 0 12px;
}

.page-content p {
    margin-bottom: 18px;
    max-width: 780px;
    color: #000000;
}

.page-content blockquote {
    border-left: 5px solid var(--pink);
    background: var(--pink-light);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.page-content .wp-block-columns {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.page-content .wp-block-column {
    flex: 1;
    min-width: 240px;
}

.page-content .wp-block-button__link {
    background: var(--pink) !important;
    color: var(--white) !important;
    border-radius: 24px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
}

.page-content .wp-block-button__link:hover {
    background: var(--pink-dark) !important;
}

.page-content figure.wp-block-gallery {
    margin: 28px 0;
}

.page-content .wp-block-quote {
    border-left: 5px solid var(--pink);
    background: var(--pink-light);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
}

.page-content .wp-block-quote p {
    font-style: italic;
    font-size: 1.1rem;
}

.page-content .wp-block-quote cite {
    color: #000000;
    font-weight: 600;
    font-style: normal;
    font-size: 0.9rem;
}

/* === ROSA STATISTIKK-LINJE === */
.stats-bar {
    background: var(--pink);
    padding: 36px 24px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--white);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    color: var(--white);
}

@media (max-width: 480px) {
    .stats-grid { gap: 28px; }
    .stat-number { font-size: 1.7rem; }
}

/* === HERO MED PORTRETT === */
.hero-split { padding: 48px 24px; }
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 260px; text-align: left; }
.hero-text h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: left; color: #000000; }
.hero-text .subtitle { text-align: left; }
.hero-portrait { flex-shrink: 0; }
.hero-portrait img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 5px solid var(--pink);
    box-shadow: 0 8px 32px rgba(233,30,140,0.22);
    filter: contrast(1.15) brightness(1.06);
    image-rendering: -webkit-optimize-contrast;
}

/* === HERO TAGLINE OG ROLLE === */
.hero-tagline {
    font-size: 1.1rem;
    color: #000000;
    margin: 10px 0 6px;
    font-style: italic;
}
.hero-role {
    font-size: 0.95rem;
    color: #000000;
    font-weight: 600;
    margin: 0 0 18px;
}

/* === HERO SOSIALE MEDIER === */
.hero-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 2px solid var(--pink);
    color: #000000;
    border-radius: 24px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.hero-social a:hover {
    background: var(--pink);
    color: var(--white);
    text-decoration: none;
}

.hero-social a svg {
    flex-shrink: 0;
}

/* === FUN FACTS + ARTIKLER LAYOUT === */
.facts-articles-section {
    padding: 56px 24px;
    background: var(--light-gray);
}

.facts-articles-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 860px) {
    .facts-articles-inner { grid-template-columns: 1fr; }
}

.facts-col h2, .articles-col h2 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pink-light);
}

/* === FUN FACTS === */
.fun-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 4px;
}
.fun-fact {
    background: var(--white);
    border: 2px solid var(--pink-light);
    border-left: 4px solid var(--pink);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #000000;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
}

/* === MINE ARTIKLER (SIDEBAR) === */
.articles-col {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

.article-list li:last-child { border-bottom: none; }

.article-list a {
    display: block;
    color: #000000;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s;
}

.article-list a:hover {
    color: #000000;
    text-decoration: none;
}

.article-list .article-date {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}

.all-articles-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--pink);
    font-weight: 600;
}

@media (max-width: 640px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; }
    .hero-text h1, .hero-text .subtitle { text-align: center; }
    .hero-portrait img { width: 200px; height: 200px; }
    .fun-facts-grid { grid-template-columns: 1fr 1fr; }
}
