/*
Theme Name: JTM28 - Japam Tapam Moksham
Description: A minimal WordPress theme matching the JTM28 website design. Features single-page post layout with YouTube embeds, donation buttons, and seamless integration with the existing static site design.
Author: JTM28 Team
Version: 2.0.0
Requires at least: 6.6
Tested up to: 6.8.2
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jtm28
Tags: spiritual, religious, hindu, dharma, responsive, blog, single-page, minimal, youtube
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties (Variables) */
:root {
    /* Spiritual Color Palette */
    --saffron: #FF9933;
    --gold: #FFD700;
    --peacock: #1C4E80;
    --spiritual-50: #FFF8F0;
    --spiritual-100: #FFF1E6;
    --spiritual-200: #FFE4CC;
    --spiritual-300: #FFD1A3;
    --spiritual-400: #FFBE7A;
    --spiritual-500: #FF9933;
    --spiritual-600: #E6832E;
    --spiritual-700: #CC6D29;
    --spiritual-800: #B35724;
    --spiritual-900: #99411F;
    
    /* Typography */
    --font-sanskrit: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --card-padding: 2rem;
    
    /* Shadows */
    --card-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --button-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #374151;
    background: #FEFEFE;
    font-size: 16px;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* WordPress Core Styles */
.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-columns {
    margin-bottom: 2rem;
}

.wp-block-image {
    margin-bottom: 1rem;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sanskrit);
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.875rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1rem;
    color: #6B7280;
}

a {
    color: var(--saffron);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--spiritual-700);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: white;
    box-shadow: var(--button-shadow);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--saffron);
    border: 2px solid var(--saffron);
}

.btn-secondary:hover {
    background: var(--saffron);
    color: white;
    transform: scale(1.05);
}

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

.btn-outline:hover {
    background: white;
    color: var(--saffron);
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-link {
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.home-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
    color: white !important;
}

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

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-sanskrit);
    font-size: 1.5rem;
    font-weight: bold;
    color: #1F2937;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.current-menu-item {
    color: var(--saffron);
}

.nav-menu a:hover::after,
.nav-menu a.current-menu-item::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--saffron);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #374151;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--spiritual-100), var(--spiritual-200));
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23FF9933" opacity="0.1"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Content Sections */
.content-section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: #1F2937;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 48rem;
    margin: 0 auto;
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    padding: var(--card-padding);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

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

/* Post Cards for Blog Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.post-card .post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.post-card .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    flex-grow: 0;
}

.post-card .entry-title a {
    color: #1F2937;
    text-decoration: none;
}

.post-card .entry-title a:hover {
    color: var(--saffron);
}

.post-card .entry-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.post-card .entry-meta i {
    margin-right: 0.25rem;
}

.post-card .entry-summary {
    margin-bottom: 1.5rem;
    color: #6B7280;
    line-height: 1.6;
    flex-grow: 1;
}

.post-card .post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
}

.post-card .read-more {
    color: var(--saffron);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.post-card .read-more:hover {
    color: var(--spiritual-700);
    transform: translateX(5px);
}

.post-card .donate-btn {
    background: linear-gradient(135deg, var(--gold), var(--saffron));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.post-card .donate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    color: white;
}

/* YouTube Video Embeds */
.youtube-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Main Donate Button */
.main-donate-section {
    background: linear-gradient(135deg, var(--spiritual-100), var(--spiritual-200));
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
    border-radius: 1rem;
}

.main-donate-btn {
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: var(--button-shadow);
}

.main-donate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.4);
    color: white;
}

/* Single Post Layout */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.single-post-content .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1F2937;
    text-align: center;
}

.single-post-content .entry-meta {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.single-post-content .entry-content {
    line-height: 1.8;
    font-size: 1.125rem;
}

.single-post-content .entry-content h2,
.single-post-content .entry-content h3,
.single-post-content .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1F2937;
}

.single-post-content .entry-content p {
    margin-bottom: 1.5rem;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--saffron);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-to-blog:hover {
    color: var(--spiritual-700);
    transform: translateX(-5px);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
}

.card-description {
    color: #6B7280;
    line-height: 1.6;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* WordPress Specific Styles */
.wp-block-group.has-background {
    padding: 2rem;
    border-radius: 1rem;
}

.wp-block-cover {
    border-radius: 1rem;
    overflow: hidden;
}

.wp-block-button .wp-block-button__link {
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.is-style-spiritual .wp-block-button__link {
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: white;
}

/* Footer - Social Media Only */
.site-footer {
    background: linear-gradient(135deg, var(--spiritual-900), var(--spiritual-800));
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-social-only {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.25rem;
}

.social-link:hover {
    background: var(--saffron);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
}

@media (max-width: 480px) {
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 0.5rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* WordPress Customizer Support */
.custom-header {
    position: relative;
    overflow: hidden;
}

.custom-header img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: var(--saffron);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.25rem;
}

.skip-link:focus {
    top: 1rem;
    left: 1rem;
    z-index: 10000;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .hero-section {
        background: none;
        padding: 2rem 0;
    }
}