/*
Theme Name: InternetHindu Pro
Theme URI: https://internethindu.in
Author: InternetHindu
Author URI: https://internethindu.in
Description: Professional SEO-optimized WordPress theme for news and blog websites. Fast loading, AdSense ready, fully customizable with modern responsive design.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: internethindu
Tags: blog, news, two-columns, right-sidebar, custom-background, custom-header, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support, footer-widgets
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

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

a:hover {
    color: #e55a2b;
}

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

.content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

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

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-branding h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.site-branding h1 a {
    color: white;
}

.site-description {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Navigation */
.main-navigation {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
    border-radius: 6px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: rgba(255,255,255,0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

/* ==========================================================================
   Featured Section
   ========================================================================== */
.featured-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.featured-post {
    position: relative;
    overflow: hidden;
}

.featured-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.featured-category {
    display: inline-block;
    background: #ff6b35;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.3;
}

.featured-title a {
    color: white;
}

.featured-excerpt {
    font-size: 1rem;
    opacity: 0.95;
    margin-top: 10px;
}

/* ==========================================================================
   Post Grid
   ========================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.post-thumbnail {
    position: relative;
    padding-top: 66%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.4;
}

.post-title a {
    color: #333;
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.875rem;
    color: #666;
    margin: 10px 0;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.read-more {
    display: inline-block;
    color: #ff6b35;
    font-weight: 600;
    margin-top: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-header {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #222;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #666;
}

.single-post-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 30px 0 15px;
    color: #222;
    font-weight: 700;
}

.single-post-content h2 {
    font-size: 2rem;
}

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

.single-post-content p {
    margin: 15px 0;
    line-height: 1.8;
    color: #444;
}

.single-post-content ul,
.single-post-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.single-post-content li {
    margin: 8px 0;
    line-height: 1.6;
}

.single-post-content blockquote {
    border-left: 4px solid #ff6b35;
    padding: 20px;
    margin: 20px 0;
    background: #f9f9f9;
    font-style: italic;
}

.single-post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff6b35;
    color: #222;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.widget a {
    color: #333;
    display: block;
}

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

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-info h4 a {
    color: #333;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #888;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.search-form button {
    padding: 12px 25px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.search-form button:hover {
    background: #e55a2b;
}

/* Categories Widget */
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-count {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* ==========================================================================
   AdSense Optimization
   ========================================================================== */
.ad-container {
    background: #f9f9f9;
    padding: 15px;
    text-align: center;
    margin: 30px 0;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.ad-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Ad placement zones */
.ad-header {
    margin: 20px 0;
}

.ad-sidebar {
    margin: 20px 0;
}

.ad-content-top,
.ad-content-middle,
.ad-content-bottom {
    margin: 30px 0;
}

.ad-footer {
    margin: 30px 0;
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-area {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #222;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
}

.comment-content p {
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    padding: 8px 20px;
    background: #667eea;
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-top: 10px;
}

.comment-form {
    margin-top: 40px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 0.95rem;
}

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

.comment-form input[type="submit"] {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.comment-form input[type="submit"]:hover {
    background: #e55a2b;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: white;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pagination .current {
    background: #ff6b35;
    color: white;
}

.pagination a:hover {
    background: #667eea;
    color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

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

.footer-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: #667eea;
}

.breadcrumbs span {
    margin: 0 8px;
    color: #999;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #764ba2;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation a {
        padding: 15px 20px;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .single-post-title {
        font-size: 1.75rem;
    }
    
    .single-post-header,
    .single-post-content,
    .comments-area {
        padding: 25px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-branding h1 {
        font-size: 1.5rem;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,107,53,0.3);
    border-radius: 50%;
    border-top-color: #ff6b35;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .site-header,
    .sidebar,
    .comments-area,
    .site-footer,
    .ad-container {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
}
