/*
Theme Name: Spiri Theme
Description: A warm, sunny and spiritual WordPress theme designed for spiritual journeys and wellness. Features warm colors, soft gradients, and peaceful design elements.
Version: 1.0
Author: Spiri Team
*/

:root {
    --primary-gold: #f4c430;
    --warm-orange: #ff9a56;
    --soft-pink: #ffb3ba;
    --sage-green: #87ceeb;
    --deep-purple: #9b59b6;
    --warm-white: #fefdf8;
    --soft-gray: #f5f5f5;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--warm-white) 0%, #fff8dc 100%);
    min-height: 100vh;
}

/* Header Styling */
.site-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--warm-orange) 100%);
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.site-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.site-description {
    text-align: center;
    font-size: 1.2rem;
    color: white;
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    font-weight: 500;
}

/* Navigation */
.main-navigation {
    text-align: center;
    margin-top: 20px;
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: inline-flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.5);
    font-size: 16px;
}

.main-navigation a:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    border-color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    text-shadow: 3px 3px 6px rgba(0,0,0,1);
    color: white;
}

.main-navigation a:focus {
    background: rgba(0, 0, 0, 0.9);
    border-color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,255,255,0.5);
    text-shadow: 3px 3px 6px rgba(0,0,0,1);
    outline: none;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu-wrapper {
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu-wrapper {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, rgba(155, 89, 182, 0.95) 0%, rgba(244, 196, 48, 0.95) 100%);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        backdrop-filter: blur(10px);
        width: 280px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
        border: 2px solid rgba(255,255,255,0.3);
    }
    
    .nav-menu-wrapper.active {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            transform: translateX(-50%) translateY(-10px);
            opacity: 0;
        }
        to {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-navigation li {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .main-navigation li:last-child {
        margin-bottom: 0;
    }
    
    .main-navigation a {
        padding: 15px 20px;
        font-size: 1rem;
        text-align: center;
        border-radius: 10px;
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.25);
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .main-navigation a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }
    
    .main-navigation a:hover::before {
        left: 100%;
    }
    
    .main-navigation a:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .site-header {
        padding: 15px 0 25px 0;
    }
    
    .main-navigation {
        margin-top: 15px;
    }
}

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

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.content-area {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Posts */
.post {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,248,220,0.8) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(244, 196, 48, 0.2);
    transition: all 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

.post-title {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

.post-title a {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-title a:hover {
    background: linear-gradient(135deg, var(--warm-orange) 0%, var(--deep-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(244, 196, 48, 0.3);
}

.post-meta {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-style: italic;
    background: rgba(44, 62, 80, 0.1);
    padding: 15px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-gold);
    font-weight: 500;
    font-size: 0.95rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    color: #2c3e50;
    font-weight: 400;
}

.post-content p {
    margin-bottom: 20px;
    color: #34495e;
}

.post-content a {
    color: var(--deep-purple);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-content a:hover {
    border-bottom: 2px solid var(--primary-gold);
    text-shadow: 0 2px 10px rgba(244, 196, 48, 0.3);
}

.post-content h2, .post-content h3, .post-content h4 {
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.post-content ul, .post-content ol {
    color: #2c3e50;
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
    color: #34495e;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    height: fit-content;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.widget {
    margin-bottom: 30px;
    background: rgba(255,255,255,0.9);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(155, 89, 182, 0.15);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.4rem;
    color: var(--deep-purple);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(155, 89, 182, 0.2);
}

/* Buttons */
.btn-spiritual {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--warm-orange) 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-spiritual:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

/* Site Footer */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #9b59b6 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(155, 89, 182, 0.8) 100%);
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.site-footer h3, .site-footer h4 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.site-footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-gold);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* WooCommerce Integration */
.woocommerce .button {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--warm-orange) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.woocommerce .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.woocommerce .price {
    color: var(--deep-purple);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 20px auto;
    }
    
    .content-area, .sidebar {
        padding: 25px;
    }
    
    .post-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        gap: 20px;
        margin: 15px auto;
    }
    
    .site-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .site-description {
        font-size: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .main-navigation a {
        padding: 12px 20px;
        font-size: 0.95rem;
        display: block;
        text-align: center;
    }
    
    .content-area, .sidebar {
        padding: 20px;
        margin: 0 10px;
    }
    
    .post {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .post-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .footer-content > div {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }
    
    .widget {
        margin-bottom: 20px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .site-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .main-navigation a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .content-area, .sidebar {
        padding: 15px;
        margin: 0 5px;
    }
    
    .post {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .btn-spiritual {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Enhanced Visual Elements */
.post-excerpt-more {
    display: inline-block;
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.continue-reading {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--warm-orange) 100%);
    color: white !important;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none !important;
}

.continue-reading:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white !important;
    text-decoration: none !important;
}

/* Better link styling throughout */
a {
    color: var(--deep-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--warm-orange);
}

/* Sidebar improvements for mobile */
@media (max-width: 768px) {
    .sidebar {
        order: -1; /* Show sidebar above content on mobile */
    }
    
    .widget {
        margin-bottom: 15px;
    }
    
    .widget-title {
        font-size: 1.2rem;
    }
}

/* Improved header for mobile */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }
    
    .main-navigation {
        margin-top: 15px;
    }
}

/* Better footer for mobile */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px;
    }
    
    .footer-content h3 {
        font-size: 1.5rem;
    }
    
    .footer-content h4 {
        font-size: 1.2rem;
    }
}

/* Spiritual Elements */
.spiritual-quote {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(244, 196, 48, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-gold);
    margin: 25px 0;
    font-style: italic;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.spiritual-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-gold);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.spiritual-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-gold);
    position: absolute;
    bottom: -40px;
    right: 20px;
    opacity: 0.3;
}

.chakra-divider {
    text-align: center;
    margin: 30px 0;
    font-size: 2rem;
    color: var(--primary-gold);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Animation */
@keyframes gentle-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(244, 196, 48, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(244, 196, 48, 0.6);
        transform: scale(1.02);
    }
}

.spiritual-glow {
    animation: gentle-glow 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

/* Improved content layout */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Better typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--deep-purple);
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; }

/* Mobile typography adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.3rem; }
    h5 { font-size: 1.2rem; }
    h6 { font-size: 1rem; }
    
    .spiritual-quote {
        padding: 20px;
        margin: 20px 0;
    }
    
    .spiritual-quote::before,
    .spiritual-quote::after {
        font-size: 3rem;
    }
}

/* WooCommerce Styles - Affichage en grille */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product {
    background: white !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    color: var(--deep-purple) !important;
    font-size: 1.1rem !important;
    margin: 15px 15px 10px 15px !important;
    line-height: 1.3 !important;
}

.woocommerce ul.products li.product .price {
    color: var(--warm-orange) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    margin: 0 15px 15px 15px !important;
}

.woocommerce ul.products li.product .button {
    background: var(--primary-gold) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    margin: 0 15px 15px 15px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--warm-orange) !important;
    transform: translateY(-1px) !important;
}

/* Mobile responsive pour WooCommerce */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}
