/* css/main.css - Общие стили для всех языковых версий */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #ffd700;
    --light-gold: #ffed4a;
    --dark-blue: #1a1a2e;
    --medium-blue: #16213e;
    --light-blue: #0f3460;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-gold: rgba(255, 215, 0, 0.3);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--medium-blue) 50%, var(--light-blue) 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--glass-bg);
    color: var(--primary-gold);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-gold), var(--light-gold), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card, .book-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before, .book-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.feature-card:hover::before, .book-card:hover::before {
    opacity: 1;
    animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feature-card:hover, .book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-gold);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3, .book-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-gold);
    position: relative;
    z-index: 1;
}

.feature-card p, .book-card p {
    position: relative;
    z-index: 1;
}

/* Online Counter */
.online-counter {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.counter-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-gold);
    display: block;
    margin-bottom: 0.5rem;
}

/* Verse of the Day */
.verse-of-day {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 74, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.verse-text {
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.verse-reference {
    color: var(--primary-gold);
    font-weight: bold;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
    display: block;
}

/* Reading Plans */
.reading-plans {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.plan-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.plan-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

.plan-item:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 74, 0.1));
    border-radius: 20px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-gold), var(--light-gold));
    color: var(--dark-blue);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow-gold);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin-top: 4rem;
}

/* Bible Reader Styles */
.bible-container {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.bible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bible-title {
    color: var(--primary-gold);
    font-size: 2rem;
    margin: 0;
}

.bible-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.bible-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.bible-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-gold);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chapter-content {
    line-height: 2;
    font-size: 1.1rem;
}

.verse {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.verse:hover {
    background: rgba(255, 215, 0, 0.1);
}

.verse-number {
    color: var(--primary-gold);
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 0.9em;
    vertical-align: super;
}

/* Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav {
        padding: 0 1rem;
    }
    
    .container {
        padding: 6rem 1rem 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .container {
        padding: 8rem 1rem 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bible-header {
        flex-direction: column;
        text-align: center;
    }
    
    .bible-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .bible-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-card, .book-card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .verse-text {
        font-size: 1.1rem;
    }
}