/*
Theme Name: Guru Beauty
Description: An exact replica of the Guru of Beauty website design - a modern lifestyle and beauty blog theme
Author: Custom Development
Version: 1.0
*/

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ddf8e3;
    font-size: 16px;
    font-weight: 400;
}

a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #666666;
}

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

/* Header Styles */
.site-header {
    background: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #111111;
}

.site-logo::before {
    content: '';
    width: 40px;
    height: 40px;
    background: #8B5A3C;
    border-radius: 50%;
    display: block;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%23D2A982"/><ellipse cx="50" cy="30" rx="15" ry="20" fill="%234a3728"/><circle cx="40" cy="40" r="3" fill="%234a3728"/><circle cx="60" cy="40" r="3" fill="%234a3728"/><path d="M45 50 Q50 55 55 50" stroke="%234a3728" stroke-width="2" fill="none"/><path d="M35 25 Q50 15 65 25" stroke="%234a3728" stroke-width="3" fill="none"/></svg>');
    background-size: contain;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}

.main-navigation a {
    font-weight: 400;
    font-size: 15px;
    padding: 6px 0;
    transition: color 0.3s ease;
    position: relative;
    color: #666666;
}

.main-navigation a:hover {
    color: #333333;
}

.hot-talk-badge {
    background: #ff4757 !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content Layout */
.main-content {
    background: transparent;
    padding: 0 0 40px;
}

/* White content card centered on mint background */
.page-surface {
    max-width: 1190px;
    margin: 24px auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}

/* Hero Section - Remove gradient, make it clean */
.hero-section {
    display: none; /* Hide the gradient hero for clean look */
}

/* Content Grid Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    max-width: 1190px;
    margin: 0 auto;
    padding: 0 24px 24px;
    background: #ffffff;
}

.main-column {
    background: white;
}

.sidebar-column {
    background: white;
    padding: 0;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-article img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.featured-article-content {
    padding: 28px 24px 26px;
}

.featured-article h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.featured-article p {
    font-size: 16px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.read-more-btn {
    color: #111111;
    font-weight: 600;
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0;
}
.read-more-btn::after {
    content: ' \2192';
    margin-left: 8px;
}

/* Sidebar Articles */
.sidebar-articles { padding: 8px 12px; }

.sidebar-article {
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    margin-bottom: 12px;
}

.sidebar-article:last-child { margin-bottom: 0; }

.sidebar-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }

.sidebar-category { font-size: 12px; color: #9aa1a9; }

.sidebar-date { font-size: 12px; color: #b6bcc6; }

.sidebar-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: #1f2937; }
.sidebar-title a { color: inherit; }
.sidebar-title a:hover { color: #111; }

/* Section Headers */
.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #333333;
    text-align: left;
}

/* Archive page */
.archive-container {
    max-width: 1190px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.archive-header {
    padding: 28px 0 18px;
}

.archive-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.archive-description {
    color: #666;
    font-size: 14px;
    margin-top: 6px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.archive-card {
    background: #fff;
}

.archive-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.archive-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 12px 0 8px;
    color: #1f2937;
}

.archive-card-title a { color: inherit; }

.archive-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.archive-read-more { font-size: 13px; }

.archive-next {
    display: flex;
    justify-content: center;
    padding: 28px 0 12px;
}

.archive-next a {
    display: inline-block;
    background: #1877f2;
    color: #fff;
    padding: 12px 36px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .archive-container { padding: 0 16px 24px; }
    .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .archive-grid { grid-template-columns: 1fr; }
}

/* Entertainment Section */
.entertainment-section {
    background: white;
    padding: 28px 24px;
    margin: 16px auto 0;
    max-width: 1190px;
}

.entertainment-badge {
    display: inline-block;
    background: #ffc107;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Blog Posts Section - Main Grid Layout */
.blog-posts-section {
    max-width: 1190px;
    margin: 0 auto;
    padding: 40px 24px 24px;
    background: #ffffff;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-post-card {
    background: white;
    position: relative;
    overflow: hidden;
}

.blog-post-image {
    position: relative;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffc107;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.blog-post-content {
    padding: 20px 16px 16px;
}

.blog-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #1f2937;
}

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

.blog-post-title a:hover {
    color: #111;
}

.blog-post-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.blog-read-more {
    color: #111111;
    font-weight: 600;
    text-transform: none;
    font-size: 13px;
    letter-spacing: 0;
    text-decoration: none;
}

.blog-read-more::after {
    content: ' \2192';
    margin-left: 6px;
}

.blog-read-more:hover {
    color: #666;
}

/* Entertainment Section Updates */
.entertainment-section h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #1f2937;
}

.entertainment-section h2 a {
    color: inherit;
    text-decoration: none;
}

.entertainment-section h2 a:hover {
    color: #111;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 18px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
    }
    
    .mobile-menu-toggle { 
        display: block; 
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 auto;
        padding: 0 16px 16px;
    }
    
    .featured-article h1 {
        font-size: 26px;
    }
    
    .featured-article-content {
        padding: 18px 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-posts-section {
        padding: 24px 16px 16px;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-post-image img {
        height: 200px;
    }
    
    /* Mobile sidebar adjustments */
    .sidebar {
        width: 280px;
        right: -280px;
    }
    
    .sidebar.active {
        right: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .featured-article h1 {
        font-size: 22px;
    }
    
    .sidebar-article {
        grid-template-columns: 1fr;
    }
    
    .sidebar-article-meta {
        min-width: auto;
    }
    
    .page-surface {
        margin: 0;
        box-shadow: none;
    }
}

/* Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: #e9ecef;
    color: #333;
}

.sidebar-navigation {
    padding: 20px 0;
}

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

.sidebar-navigation li {
    margin: 0;
}

.sidebar-navigation a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-navigation a:hover {
    background: #f8f9fa;
    color: #111;
    padding-left: 25px;
}

.sidebar-navigation .hot-talk-badge {
    background: #ff4757 !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    margin: 0 20px 10px 20px;
    border-radius: 6px !important;
}

.sidebar-navigation .hot-talk-badge:hover {
    background: #e63946 !important;
    padding-left: 25px !important;
}

/* Ensure sidebar works well on all screen sizes */
@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        right: -100%;
    }
    
    .sidebar.active {
        right: 0;
    }
    
    .sidebar-header {
        padding: 15px 20px;
    }
    
    .sidebar-navigation a {
        padding: 15px 20px;
        font-size: 18px;
    }
    
    .sidebar-navigation .hot-talk-badge {
        margin: 0 20px 15px 20px;
        padding: 15px 20px !important;
    }
}

/* Admin Bar Adjustments */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* WordPress Admin Bar Hidden for Clean Look */
#wpadminbar {
    display: none !important;
}

body.admin-bar {
    margin-top: 0 !important;
}

body.admin-bar .site-header {
    top: 0 !important;
}