/*
Theme Name: DrinkLeader Theme
Theme URI: https://drinkleader.com
Author: DrinkLeader
Author URI: https://drinkleader.com
Description: Custom theme for DrinkLeader blog matching the main site design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drinkleader
*/

:root {
    --primary: #0f4c81;
    --primary-dark: #0c3c66;
    --accent: #ffb347;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2d3d;
    --muted: #5c6b7a;
    --shadow: 0 14px 40px rgba(16, 70, 129, 0.12);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 10% 20%, #e7f0ff 0%, #f5f7fb 35%, #f5f7fb 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

/* ========================================
   SITE HEADER
   ======================================== */
.site-header {
    background: linear-gradient(135deg, #0066FF 0%, #1a7aff 50%, #3d8bff 100%);
    color: #fff;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 102, 255, 0.3);
}

.header-inner {
    padding: 12px 0;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease;
}

.header-brand:hover {
    opacity: 0.9;
    color: #fff;
}

.brand-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo img,
.brand-logo svg {
    width: 48px;
    height: 48px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

/* Hero section for blog */
.blog-hero {
    padding: 20px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin: 8px 0 0;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.site-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px 56px;
}

/* Blog posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Article cards */
article.post {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

article.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(16, 70, 129, 0.18);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #d3e5ff, #f3f7ff);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-weight: 800;
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--text);
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

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

.post-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.post-excerpt {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.read-more:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Single post */
.single-post {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-top: 24px;
}

.single-post .post-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.single-post .post-meta {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8eef5;
}

.single-post .post-content {
    padding: 0;
}

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

.single-post .post-content h2,
.single-post .post-content h3 {
    color: var(--primary-dark);
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.single-post .post-content li {
    margin-bottom: 0.5em;
}

/* Categories and tags */
.post-categories,
.post-tags {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8eef5;
}

.post-categories span,
.post-tags span {
    display: inline-block;
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Sidebar */
.sidebar {
    margin-top: 40px;
}

.widget {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e8eef5;
}

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

.widget a {
    color: var(--text);
    font-weight: 500;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: var(--card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--text);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
}

.pagination .current {
    background: var(--primary);
    color: #fff;
}

/* Comments */
.comments-area {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-top: 32px;
}

.comments-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 24px;
    color: var(--text);
}

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

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #e8eef5;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 700;
    color: var(--text);
}

.comment-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d8e3f5;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 16px;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ========================================
   SITE FOOTER
   ======================================== */
.site-footer {
    background: linear-gradient(120deg, #0f4c81, #0c3c66);
    color: #d9e8ff;
    padding: 28px 0 18px;
    margin-top: 48px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.site-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .header-inner {
        padding: 12px 0;
    }
    .header-brand {
        gap: 10px;
    }
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    .brand-logo img,
    .brand-logo svg {
        width: 36px;
        height: 36px;
    }
    .brand-name {
        font-size: 18px;
    }
    .brand-tagline {
        font-size: 11px;
    }
    .site-main {
        padding: 24px 12px 48px;
    }
    .single-post {
        padding: 24px;
    }
    .single-post .post-title {
        font-size: 24px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
