/* ============================================
   INDEPENDENT VOICE BLOG - STYLESHEET
   ============================================ */

/* Root Variables */
:root {
    --primary-dark: #1a1a1a;
    --primary-light: #ffffff;
    --accent-red: #d32f2f;
    --accent-orange: #f57c00;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ecf0f1;
    --hover-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--primary-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   HEADER AND NAVIGATION
   ============================================ */

header {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    border-bottom: 3px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1.5rem 0;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.logo h1 a {
    color: var(--primary-light);
    text-decoration: none;
}

.tagline {
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-style: italic;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-orange);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/kurdistan_flag') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--primary-light);
    padding: 8rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-red);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    color: #bdc3c7;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEED CONTAINER
   ============================================ */

.feed-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.feed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.categories,
.featured-box {
    background-color: var(--hover-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-red);
    border-radius: 4px;
}

.categories h3,
.featured-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.categories ul {
    list-style: none;
}

.categories li {
    margin-bottom: 0.75rem;
}

.categories a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.categories a:hover {
    color: var(--accent-red);
    padding-left: 0.5rem;
}

.featured-box p {
    color: var(--text-light);
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feed-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    border-bottom: 3px solid var(--accent-red);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */

.article-card {
    background-color: var(--primary-light);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-red);
}

.article-header {
    margin-bottom: 1rem;
}

.article-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-header a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.article-card:hover .article-header a {
    color: var(--accent-red);
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.date:before {
    content: '📅 ';
    margin-right: 0.25rem;
}

.author:before {
    content: '✍️ ';
    margin-right: 0.25rem;
}

.category {
    background-color: var(--accent-red);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

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

.read-more {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
}

.read-more:hover {
    margin-left: 0.5rem;
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */

.load-more-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.load-more-btn {
    background-color: var(--accent-red);
    color: var(--primary-light);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.load-more-btn:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

/* ============================================
   ARTICLE PAGE
   ============================================ */

.article-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-container {
    margin: 3rem 0;
}

.breadcrumb {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--accent-red);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-header-full {
    margin-bottom: 2rem;
    text-align: center;
    background-color: var(--primary-light);
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.article-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-weight: bold;
}

.article-subtitle {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 2rem;
}

.article-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--hover-bg);
    border-left: 4px solid var(--accent-red);
    border-radius: 4px;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--accent-red);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-details strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.author-details p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-meta-full {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.category-badge {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Article Image */
.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.75rem;
    text-align: center;
}

/* Article Content */
.article-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.article-intro {
    font-size: 1.1rem;
    color: #222;
    font-weight: 500;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 0.5rem;
}

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

.article-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #444;
    font-size: 1.1rem;
}

/* Article Footer */
.article-footer {
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags h4,
.share-section h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-block;
    background-color: var(--hover-bg);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--accent-red);
    color: var(--primary-light);
    border-color: var(--accent-red);
}

.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--hover-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
}

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

/* Related Articles */
.related-articles {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--hover-bg);
    border-left: 4px solid var(--accent-orange);
    border-radius: 4px;
}

.related-articles h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background-color: var(--primary-light);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.related-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-card h3 a {
    color: var(--primary-dark);
    text-decoration: none;
}

.related-card h3 a:hover {
    color: var(--accent-red);
}

.related-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.related-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Comments Section */
.comments-section {
    margin: 3rem 0;
    max-width: 900px;
}

.comments-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    border-bottom: 3px solid var(--accent-red);
    padding-bottom: 0.5rem;
}

.comments-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.comment {
    border-left: 4px solid var(--accent-orange);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--hover-bg);
    border-radius: 4px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    align-items: center;
}

.comment-header strong {
    color: var(--primary-dark);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-text {
    color: #333;
    line-height: 1.6;
}

.comment-form {
    background-color: var(--hover-bg);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.comment-form h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.comment-form textarea,
.comment-form input {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.comment-form button {
    background-color: var(--accent-red);
    color: var(--primary-light);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    font-size: 1rem;
}

.comment-form button:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    margin-top: 4rem;
    border-top: 3px solid var(--accent-red);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .feed-container {
        grid-template-columns: 1fr;
    }

    .feed-sidebar {
        order: 2;
    }

    .feed {
        order: 1;
    }

    .article-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-meta-full {
        text-align: left;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .article-card {
        padding: 1rem;
    }

    .article-header h3 {
        font-size: 1.1rem;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
