/*
Theme Name: Vastorm Photo
Theme URI: https://www.vastormphoto.com
Author: Vastorm Photo
Author URI: https://www.vastormphoto.com
Description: A clean, professional photography theme with EU cookie compliance
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vastormphoto
*/

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

:root {
    --primary: #1a1a2e;
    --accent: #e94560;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --border: #dee2e6;
    --font: 'Georgia', serif;
    --sans: 'Helvetica Neue', Arial, sans-serif;
}

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

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

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-content { display: grid; grid-template-columns: 1fr 300px; gap: 60px; padding: 60px 0; }
@media (max-width: 768px) { .site-content { grid-template-columns: 1fr; } }

/* ===== HEADER ===== */
.site-header {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.site-name {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font);
    letter-spacing: 0.5px;
}

.site-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

/* ===== NAV ===== */
.main-nav ul { list-style: none; display: flex; gap: 5px; }
.main-nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.main-nav a:hover, .main-nav .current-menu-item a {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 2px; background: white; margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); padding: 10px 20px 20px; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
}

/* ===== HERO / FEATURED ===== */
.featured-post {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.featured-post .featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.featured-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    width: 100%;
}

.featured-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.featured-content h2 { color: white; font-size: 2rem; font-family: var(--font); margin-bottom: 12px; line-height: 1.3; }
.featured-content p { color: rgba(255,255,255,0.8); margin-bottom: 20px; max-width: 600px; }
.featured-content .read-more {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.featured-content .read-more:hover { opacity: 0.85; text-decoration: none; }

/* ===== POST GRID ===== */
.section-title {
    font-size: 1.4rem;
    font-family: var(--font);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-bottom: 40px; }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.post-card-img { width: 100%; height: 180px; object-fit: cover; background: var(--light); }
.post-card-img-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--light), var(--border)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--gray); }

.post-card-body { padding: 20px; }
.post-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}
.post-card-body h3 { font-size: 1.05rem; font-family: var(--font); margin-bottom: 8px; line-height: 1.4; }
.post-card-body h3 a { color: var(--primary); }
.post-card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.post-meta { font-size: 0.8rem; color: var(--gray); display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== SIDEBAR ===== */
.sidebar { }
.widget { margin-bottom: 35px; }
.widget-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.widget ul li:last-child { border: none; }
.widget ul li a { color: var(--primary); }
.widget ul li a:hover { color: var(--accent); }

/* ===== SINGLE POST ===== */
.post-header { margin-bottom: 30px; }
.post-header h1 { font-size: 2.2rem; font-family: var(--font); line-height: 1.3; margin-bottom: 15px; }
.post-featured-img { width: 100%; border-radius: 10px; margin-bottom: 30px; max-height: 450px; object-fit: cover; }
.post-content { font-size: 1.05rem; line-height: 1.8; }
.post-content p { margin-bottom: 1.5em; }
.post-content h2 { font-size: 1.5rem; font-family: var(--font); margin: 2em 0 0.8em; }
.post-content h3 { font-size: 1.2rem; margin: 1.5em 0 0.6em; }
.post-content ul, .post-content ol { margin: 1em 0 1em 2em; }
.post-content blockquote { border-left: 4px solid var(--accent); padding: 15px 20px; margin: 2em 0; background: var(--light); border-radius: 0 8px 8px 0; font-style: italic; color: var(--gray); }

/* ===== ABOUT PAGE ===== */
.about-hero { text-align: center; padding: 60px 20px; background: linear-gradient(135deg, var(--primary), #16213e); color: white; border-radius: 12px; margin-bottom: 50px; }
.about-hero h1 { font-size: 2.5rem; font-family: var(--font); margin-bottom: 15px; }
.about-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }
.about-content { max-width: 800px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; }
.about-content p { margin-bottom: 1.5em; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all 0.2s;
}
.pagination a:hover, .pagination .current { background: var(--accent); color: white; border-color: var(--accent); text-decoration: none; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-name { color: white; font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.97);
    color: white;
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text { flex: 1; font-size: 0.9rem; line-height: 1.6; min-width: 280px; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-accept { background: var(--accent); color: white; }
.cookie-decline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4) !important; border: none; }

/* ===== SEARCH ===== */
.search-form { display: flex; gap: 8px; margin-bottom: 20px; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; outline: none; }
.search-form input:focus { border-color: var(--accent); }
.search-form button { background: var(--accent); color: white; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }

/* ===== TAGS ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { background: var(--light); color: var(--primary); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; border: 1px solid var(--border); transition: all 0.2s; }
.tag-item:hover { background: var(--accent); color: white; border-color: var(--accent); text-decoration: none; }
