/* Theme Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --background-light: #f8fafc;  /* Light gray background */
    --background-white: #ffffff;  /* Pure white for cards */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* Reset and Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    margin: 0;
    padding: 0;
}
/* Header */
.header-widget-area {
    display: flex; /* Adjust layout as needed */
    justify-content: center; /* Align widgets */
    padding: 10px;
    background-color: #f8f8f8; /* Example background color */
}

.header-widget-area .header-widget {
    margin: 0 10px;
}


.site-header {
    background: white;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
  
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
}

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

/* Post Container */
.posts-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
background-color: var(--background-content);  /* light gray */

}

/* Category Filters */
.news-filters {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    position: sticky;
    top: 5rem;
    z-index: 90;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.news-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Post Toggle Item */
.post-toggle {
    background: radial-gradient(circle at 100% 100%, #ffffff 0, #ffffff 9px, transparent 9px) 0% 0% / 10px 10px no-repeat, radial-gradient(circle at 0 100%, #ffffff 0, #ffffff 9px, transparent 9px) 100% 0% / 10px 10px no-repeat, radial-gradient(circle at 100% 0, #ffffff 0, #ffffff 9px, transparent 9px) 0% 100% / 10px 10px no-repeat, radial-gradient(circle at 0 0, #ffffff 0, #ffffff 9px, transparent 9px) 100% 100% / 10px 10px no-repeat, linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 2px) calc(100% - 20px) no-repeat, linear-gradient(#ffffff, #ffffff) 50% 50% / calc(100% - 20px) calc(100% - 2px) no-repeat, linear-gradient(90deg, #1C1C1C 42%, #20ca34 55%);
    border-radius: 10px;
    padding: 11px;
    box-sizing: border-box;
}

.post-toggle:hover {
    transform: translateY(-1px);
    
}

.post-title {
    padding: 1rem;
    cursor: pointer;
    position: relative;
    padding-right: 2.5rem;
}

/* Toggle Indicator */
.post-title::after {
    content: '\276F';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.post-toggle.active .post-title::after {
    transform: translateY(-50%) rotate(-90deg);
}

/* List Layout */
.post-content-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.post-image {
    flex-shrink: 0;
}

.featured-image {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
}

.no-image-placeholder {
    width: 120px;
    height: 90px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
}

.post-title-text {
    flex: 1;
    min-width: 0;
}

.post-title-text h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Breaking News & Pinned Posts */
.breaking-news {
    background: linear-gradient(135deg, #fee2e2, #fff) !important;
}

/* Breaking Badge */
.breaking-badge {
    position: absolute;
    top: 0;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
    z-index: 1;
    font-size: 0.75rem;
}

/* Meta Information - Push down to avoid badge overlap */
.post-title .meta-info {
    margin-top: 0.5rem;  /* Add space at top to avoid badge overlap */
    display: flex;
    flex-wrap: wrap;
    
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.pinned-post {
    background: linear-gradient(135deg, #dbeafe, #fff) !important;
}

/* Breaking News Badge Enhancement */
.breaking-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.badge-text {
    display: flex;
    align-items: center;
}

.breaking-expiry {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: normal;
    margin-left: 0.5rem;
}
.pin-badge {
    position: absolute;
    top: 0;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    z-index: 1;
    font-size: 0.75rem;
}

/* Meta Information */
.meta-info {
    display: flex;
    flex-wrap: wrap;
    
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.time-ago {
    color: #666;
}

.post-category {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e8e8e8;
    color: #5c5c5c;
}

/* Post Content */
.post-content {
    display: none;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
}

.post-toggle.active .post-content {
    visibility: visible;
    opacity: 1;
}

/* Reactions System */
.reactions-container {
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
}

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

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.reaction-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.reaction-emoji {
    font-size: 1.25rem;
}

.reaction-count {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    transition: var(--transition);
    z-index: 100;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: white;
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 640px) {
    .posts-container {
        padding: 0 0.75rem;
    }

    .post-toggle {
        margin-bottom: 0.75rem;
    }

    .post-title {
        padding: 0.10rem;
    }

    .featured-image,
    .no-image-placeholder {
        width: 80px;
        height: 60px;
    }

    .post-title-text h2 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .breaking-badge,
    .pin-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    /* Stack badges on mobile if both exist */
    .breaking-news.pinned-post .pin-badge {
        top: 1.5rem;
    }

    .meta-info {
        font-size: 0.75rem;
    }
    
    .header-inner {
        padding: 0.75rem;
        text-align: center;
		        padding-bottom: 0px;
    }
}

/* Replace your existing .post-poll styles with these */
.post-poll {
    background: white;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.poll-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Voting State */
.poll-options.poll-voting .poll-option {
    margin-bottom: 1rem;
}

.poll-vote-btn {
    width: 100%;
    padding: 1rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.poll-vote-btn:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.poll-vote-btn:active {
    transform: scale(0.99);
}

/* Results State */
.poll-options.poll-results .poll-option {
    margin-bottom: 1.5rem;
}

.poll-result {
    position: relative;
}

.poll-result-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.poll-result-percentage {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.poll-result-content {
    flex: 1;
    min-width: 0;
}

.poll-result-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.poll-result-bar-container {
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    border-radius: 1px;
    overflow: hidden;
}

.poll-result-bar {
    height: 100%;
    background: var(--text-primary);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.poll-result-votes {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.poll-total-votes {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
}

/* Loading State */
.poll-loading {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animation */
@keyframes pollBarLoad {
    from { width: 0; }
}

.poll-result-bar {
    animation: pollBarLoad 1s ease-out;
}

.single-post {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-image-single {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.entry-content {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Category Filter Styles */
.news-filters .filter-btn {
    position: relative;
    padding-right: 3rem;
}

.category-views {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 1rem;
    transition: opacity 0.3s ease;
}

.filter-btn:hover .category-views {
    opacity: 1;
}

/* Hide view count on mobile */
@media (max-width: 640px) {
    .category-views {
        display: none;
    }
    
    .news-filters .filter-btn {
        padding-right: 1rem;
    }
}
/* Desktop styles */
.logo-ad-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.site-branding {
    flex: 0 0 40%;
    max-width: 40%;
}
.header-ad {
    flex: 0 0 60%;
    max-width: 60%;
}
/* Responsive design */
@media (max-width: 768px) {
    .logo-ad-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .site-branding,
    .header-ad {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
}






.logo-ad-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
    width: 100%;
}

.site-branding {
    flex: 0 0 40%;
    max-width: 40%;
}

.header-ad {
    flex: 0 0 60%;
    max-width: 60%;
}

/* Override any conflicting media queries */
@media (min-width: 769px) {
    .header-top-container,
    .logo-ad-container {
        flex-direction: row !important;
    }

    .site-branding,
    .header-ad {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .site-branding {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }

    .header-ad {
        flex: 0 0 60% !important;
        max-width: 60% !important;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .logo-ad-container {
        flex-direction: column;
    }

    .site-branding,
    .header-ad {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}


.logo-ad-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem;
    width: 100%;
    flex-direction: row !important;
}

.site-branding {
    flex: 0 0 40% !important;
    max-width: 40% !important;
    min-width: 0; /* Prevents flex item from overflowing */
}

.header-ad {
    flex: 0 0 60% !important;
    max-width: 60% !important;
    min-width: 0; /* Prevents flex item from overflowing */
}


