/* Blog Styles - Tabloide.pro */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-yellow: #FFB800;
    --secondary-yellow: #FFA000;
    --accent-gold: #F39C12;
    --dark-blue: #2C3E50;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --text-dark: #2C3E50;
    --text-gray: #5A6C7D;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--light-gray);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

.btn-login {
    padding: 10px 24px;
    border: 2px solid var(--primary-yellow);
    border-radius: 8px;
    color: var(--primary-yellow);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-yellow);
    color: white;
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 120px auto 80px;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--medium-gray);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.post-category {
    padding: 4px 12px;
    background: var(--primary-yellow);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
}

.post-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card h2 a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h2 a:hover {
    color: var(--primary-yellow);
}

.post-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.post-footer {
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.read-more {
    color: var(--primary-yellow);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--accent-gold);
}

/* Single Post */
.blog-post {
    background: white;
    padding: 60px 0;
}

.post-container {
    max-width: 800px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-lead {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.post-author {
    color: var(--text-gray);
    font-style: italic;
}

.post-featured-image {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-body h1 {
    font-size: 2rem;
}

.post-body h2 {
    font-size: 1.75rem;
}

.post-body h3 {
    font-size: 1.5rem;
}

.post-body h4 {
    font-size: 1.25rem;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
}

.post-body a:hover {
    text-decoration: underline;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-yellow);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-gray);
}

.post-body code {
    background: var(--medium-gray);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-body pre {
    background: var(--dark-blue);
    color: white;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-footer-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--medium-gray);
}

.post-tags {
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--light-gray);
    color: var(--text-dark);
    border-radius: 16px;
    font-size: 0.875rem;
    margin-right: 10px;
    margin-bottom: 10px;
}

.post-share {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    background: var(--primary-yellow);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--medium-gray);
}

.nav-link {
    padding: 12px 24px;
    background: var(--light-gray);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--primary-yellow);
    color: white;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.125rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        margin: 0 auto 20px;
        display: block;
    }

    .post-navigation {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .blog-container {
        margin-top: 100px;
    }

    .post-container {
        margin-top: 80px;
    }
}
