/*
Theme Name: Spiritual Magazine
Theme URI: https://example.com/spiritual-magazine
Description: A beautiful, multilingual WordPress theme designed for spiritual magazines with membership and donation features. Supports Odia, Hindi, and English languages.
Version: 1.0
Author: Your Name
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spiritual-magazine
Tags: blog, magazine, multilingual, membership, two-columns, custom-header, custom-menu, featured-images, sticky-post, translation-ready
*/

/* ========================================
   CSS RESET & BASE STYLES
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Noto Sans', 'Noto Sans Devanagari', 'Noto Sans Oriya', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

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

a:hover {
    color: #d2691e;
}

/* ========================================
   CONTAINER & LAYOUT
======================================== */

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

.site-content {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 300px;
}

/* ========================================
   HEADER STYLES
======================================== */

.site-header {
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

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

.site-logo {
    width: 60px;
    height: 60px;
}

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

.site-title a {
    color: white;
    text-decoration: none;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher select {
    padding: 8px 15px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
}

.language-switcher select option {
    color: #333;
    background: white;
}

.member-login a {
    background: white;
    color: #8b4513;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

.member-login a:hover {
    background: #f0f0f0;
}

/* ========================================
   NAVIGATION MENU
======================================== */

.main-navigation {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: white;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.main-navigation .current_page_item a {
    background: rgba(255,255,255,0.15);
}

/* Dropdown Menu */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #8b4513;
    min-width: 200px;
    display: none;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.main-navigation li:hover > ul {
    display: flex;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
}

/* ========================================
   SLIDER SECTION
======================================== */

.hero-slider {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ========================================
   FEATURED SECTIONS
======================================== */

.featured-section {
    background: white;
    padding: 40px 0;
    margin: 30px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #8b4513;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, #d2691e);
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.magazine-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.magazine-cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.magazine-info {
    padding: 20px;
}

.magazine-title {
    font-size: 1.3rem;
    color: #8b4513;
    margin-bottom: 10px;
}

.magazine-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.magazine-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-block;
    background: #8b4513;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #d2691e;
    color: white;
}

/* ========================================
   CATEGORY SECTIONS
======================================== */

.category-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    color: #8b4513;
    margin-bottom: 15px;
}

.category-name {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   SUBSCRIPTION & DONATION
======================================== */

.cta-section {
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
    margin: 40px 0;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #8b4513;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-btn:hover {
    background: transparent;
    color: white;
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: #8b4513;
}

/* ========================================
   BLOG POSTS
======================================== */

.post {
    background: white;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.post-thumbnail {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-meta span {
    color: #666;
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 5px;
    color: #8b4513;
}

.post-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

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

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

.post-excerpt {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ========================================
   SIDEBAR WIDGETS
======================================== */

.widget {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.3rem;
    color: #8b4513;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.widget ul {
    list-style: none;
}

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

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

.widget ul li a {
    color: #555;
}

.widget ul li a:hover {
    color: #8b4513;
    padding-left: 5px;
    transition: padding 0.3s ease;
}

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

.site-footer {
    background: #2c2c2c;
    color: #ccc;
    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 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #d2691e;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #8b4513;
    transform: translateY(-3px);
}

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

.copyright {
    font-size: 0.9rem;
}

/* ========================================
   PAGINATION
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: white;
    border-radius: 5px;
    color: #8b4513;
    border: 1px solid #ddd;
}

.pagination .current {
    background: #8b4513;
    color: white;
}

.pagination a:hover {
    background: #8b4513;
    color: white;
}

/* ========================================
   MEMBERSHIP/LOGIN FORMS
======================================== */

.login-form,
.membership-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #8b4513;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #d2691e;
}

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

@media (max-width: 1024px) {
    .site-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .magazine-grid {
        grid-template-columns: 1fr;
    }
    
    .category-showcase {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

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

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

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

.hidden {
    display: none !important;
}

.members-only-badge {
    display: inline-block;
    background: #8b4513;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .cta-section {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
}
