/*
Theme Name: Minimal Blog
Theme URI: https://example.com
Author: Sravan JS
Author URI: https://example.com
Description: A modern, minimal WordPress blog theme inspired by Medium's clean design. Features a white navbar with JS blue hover effects, light gray separators, and a focus on readability.
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimal-blog
Tags: blog, minimal, clean, modern, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

html {
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Charter', 'Georgia', 'Cambria', 'Times New Roman', serif;
    font-size: clamp(16px, 1.125vw, 18px);
    line-height: 1.8;
    color: #242424;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sohne', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #242424;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: #0062ff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.custom-logo-wrapper {
    display: flex;
    align-items: center;
    line-height: 0;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    line-height: 0;
}

.custom-logo {
    max-height: 30px;
    width: auto;
    height: auto;
    display: block;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #242424;
    font-family: 'Sohne', 'Helvetica Neue', 'Arial', sans-serif;
    transition: color 0.3s ease;
    margin: 5px;
}

.site-logo-link:hover .site-title {
    color: #0062ff;
}

.site-logo-link {
    cursor: pointer;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #242424;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #0062ff;
}

.menu-toggle:focus {
    outline: 2px solid #0062ff;
    outline-offset: 2px;
}

.main-navigation a {
    color: #242424;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Sohne', 'Helvetica Neue', 'Arial', sans-serif;
    padding: 0.5rem 0;
    position: relative;
}

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

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0062ff;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.search-form-header {
    position: relative;
}

.search-form-header input[type="search"] {
    padding: 8px 15px;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    width: 200px;
    font-size: 0.9rem;
    background-color: #f7f7f7;
    transition: all 0.3s ease;
}

.search-form-header input[type="search"]:focus {
    outline: none;
    border-color: #0062ff;
    background-color: #ffffff;
    width: 250px;
}

.search-form-header input[type="search"]::placeholder {
    color: #757575;
}

/* ===================================
   Main Content Layout
   =================================== */
.site-content {
    max-width: 1200px;
    margin: clamp(30px, 5vw, 60px) auto;
    padding: 0 clamp(15px, 3vw, 30px);
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: clamp(20px, 3vw, 30px);
    width: 100%;
}

.content-area {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

/* ===================================
   Post Cards (Home & Category Pages)
   =================================== */
.post-card {
    display: flex;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid #e6e6e6;
}

.post-card:first-child {
    padding-top: 0;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}

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

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

.post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-card-title a {
    color: #242424;
}

.post-card-title a:hover {
    color: #000000;
}

.post-card-excerpt {
    color: #757575;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #0062ff;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Sohne', 'Helvetica Neue', 'Arial', sans-serif;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #0051d5;
    transform: translateX(5px);
}

.read-more::after {
    content: ' →';
}

/* ===================================
   Single Post Page
   =================================== */
.single-post {
    max-width: 100%;
    width: 100%;
}

.single-post-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.single-post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.2;
}

.post-meta {
    color: #757575;
    font-size: 1rem;
    font-family: 'Sohne', 'Helvetica Neue', 'Arial', sans-serif;
    margin-bottom: 2rem;
}

.post-meta a {
    color: #757575;
}

.post-meta a:hover {
    color: #0062ff;
}

.featured-image-large {
    margin-bottom: 2rem;
    border-radius: 4px;
    overflow: hidden;
}

.featured-image-large img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #242424;
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content img {
    margin: 2rem 0;
    border-radius: 4px;
}

.post-content blockquote {
    border-left: 3px solid #0062ff;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #757575;
}

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

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

/* ===================================
   Sidebar / Widget Area
   =================================== */
.widget-area {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.widget {
    background-color: #ffffff;
    padding: clamp(12px, 2vw, 18px);
    margin-bottom: clamp(15px, 2vw, 20px);
    border-radius: 4px;
    /* border: 1px solid #e6e6e6; */
}

.widget-title {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    padding-bottom: clamp(0.5rem, 1vw, 0.75rem);
    border-bottom: 1px solid #e6e6e6;
    font-family: 'Sohne', 'Helvetica Neue', 'Arial', sans-serif;
}

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

.widget li {
    padding: clamp(0.4rem, 1vw, 0.6rem) 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.widget li:first-child {
    padding-top: 0;
}

.widget a {
    color: #242424;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.widget a:hover {
    color: #0062ff;
    padding-left: 5px;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: #f7f7f7;
    border-top: 1px solid #e6e6e6;
    padding: 20px 0;
    margin-top: 80px;
    text-align: center;
    flex-shrink: 0;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    color: #757575;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-family: 'Sohne', 'Helvetica Neue', 'Arial', sans-serif;
}

.footer-content a {
    color: #757575;
}

.footer-content a:hover {
    color: #0062ff;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .site-content {
        grid-template-columns: 1fr 250px;
        gap: clamp(15px, 2.5vw, 25px);
    }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    .site-content {
        grid-template-columns: 1fr;
        gap: clamp(25px, 5vw, 35px);
    }
    
    .header-container {
        flex-wrap: nowrap;
        height: 60px;
        position: relative;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .main-navigation {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #e6e6e6;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 999;
    }
    
    .main-navigation.toggled {
        max-height: 500px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem clamp(15px, 3vw, 20px);
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    .post-card {
        flex-direction: column;
        padding: clamp(20px, 4vw, 25px) 0;
    }
    
    .post-thumbnail {
        width: 100%;
        height: clamp(180px, 40vw, 220px);
    }
    
    .search-form-header {
        display: none;
    }
    
    .widget-area {
        position: static;
    }
    
    .site-footer {
        margin-top: clamp(40px, 8vw, 60px);
        padding: clamp(25px, 5vw, 35px) 0;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .post-card {
        padding: clamp(15px, 3vw, 20px) 0;
    }
    
    .post-thumbnail {
        height: clamp(160px, 35vw, 200px);
    }
}

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

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


