/* ============================================================
   БАЗОВЫЕ СТИЛИ ТЕМЫ ARCANA TAROT v5.5
   ============================================================ */

:root {
    --arcana-bg: #0a0515;
    --arcana-bg-2: #150a28;
    --arcana-surface: rgba(25, 15, 50, 0.7);
    --arcana-accent: #d4af37;
    --arcana-accent-2: #8b6914;
    --arcana-text: #e8e0f5;
    --arcana-text-dim: #a89bc4;
    --arcana-purple: #4b0082;
    --arcana-border: rgba(212, 175, 55, 0.3);
    --arcana-font-heading: 'Cinzel', serif;
    --arcana-font-body: 'Cormorant Garamond', serif;
}

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

body {
    font-family: var(--arcana-font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--arcana-text);
    background: var(--arcana-bg);
    background-image: 
        radial-gradient(ellipse at top, var(--arcana-bg-2) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, #1a0530 0%, transparent 60%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--arcana-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

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

/* ===== ЗВЁЗДНЫЙ ФОН ===== */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
}

.stars-1 {
    background-image: 
        radial-gradient(1px 1px at 50px 30px, #fff, transparent),
        radial-gradient(1px 1px at 120px 80px, var(--arcana-accent), transparent),
        radial-gradient(2px 2px at 200px 150px, #fff, transparent);
    background-size: 250px 250px;
    animation: drift 120s linear infinite;
    opacity: 0.6;
}

.stars-2 {
    background-image: 
        radial-gradient(1px 1px at 100px 50px, #fff, transparent),
        radial-gradient(2px 2px at 180px 100px, var(--arcana-accent), transparent);
    background-size: 250px 250px;
    animation: drift 180s linear infinite;
    opacity: 0.5;
}

.stars-3 {
    background-image: 
        radial-gradient(1px 1px at 25px 90px, #fff, transparent),
        radial-gradient(1px 1px at 75px 150px, var(--arcana-accent), transparent),
        radial-gradient(2px 2px at 150px 30px, #fff, transparent);
    background-size: 300px 300px;
    animation: drift 240s linear infinite;
    opacity: 0.4;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.moon {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #fff8dc, #d4af37 50%, #8b6914);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6), 0 0 80px rgba(212, 175, 55, 0.3);
    opacity: 0.8;
}

/* ===== ШАПКА (без sticky) ===== */
.site-header {
    background: linear-gradient(180deg, rgba(10, 5, 21, 0.95) 0%, rgba(10, 5, 21, 0.7) 100%);
    border-bottom: 1px solid var(--arcana-border);
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.site-branding {
    text-align: left;
}

.site-title {
    margin: 0;
    font-size: 2rem;
    font-family: var(--arcana-font-heading);
}

.site-title a {
    color: var(--arcana-accent);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-symbol {
    font-size: 1.5rem;
    opacity: 0.8;
}

.site-description {
    margin: 5px 0 0;
    font-style: italic;
    color: var(--arcana-text-dim);
    font-size: 1rem;
}

/* ===== МЕНЮ ===== */
.main-navigation .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.main-navigation .nav-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--arcana-text);
    font-family: var(--arcana-font-heading);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s;
}

.main-navigation .nav-menu li a:hover,
.main-navigation .nav-menu li.current-menu-item a {
    color: var(--arcana-accent);
    border-color: var(--arcana-border);
    background: rgba(212, 175, 55, 0.05);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--arcana-border);
    color: var(--arcana-accent);
    padding: 8px 16px;
    font-family: var(--arcana-font-heading);
    cursor: pointer;
    border-radius: 4px;
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3rem;
    margin: 0 0 20px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    font-family: var(--arcana-font-heading);
    color: var(--arcana-text);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--arcana-text-dim);
    font-style: italic;
    margin-bottom: 50px;
}

/* ===== КНОПКИ ГЛАВНОЙ (ОДИНАКОВЫЙ РАЗМЕР) ===== */
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.hero-actions .btn {
    flex: 0 0 auto;
    width: 180px;
    height: 80px;
    padding: 12px 15px;
    font-family: var(--arcana-font-heading);
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid var(--arcana-accent);
    background: linear-gradient(135deg, var(--arcana-accent-2), var(--arcana-accent));
    color: #1a0a2e;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-align: center;
    line-height: 1.2;
}

.hero-actions .btn:hover {
    background: linear-gradient(135deg, var(--arcana-accent), #f0d060);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
    color: #1a0a2e;
}

.hero-actions .btn .btn-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* ===== ВЫДЕЛЕННАЯ КНОПКА "ЗНАЧЕНИЯ КАРТ" ===== */
.hero-actions .btn-meanings {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    border: 2px solid #fff0a0;
    box-shadow: 0 4px 20px rgba(240, 208, 96, 0.5);
    color: #0a0515;
    font-weight: 800;
}

.hero-actions .btn-meanings:hover {
    background: linear-gradient(135deg, #f0d060, #fff0a0);
    box-shadow: 0 6px 30px rgba(240, 208, 96, 0.8);
    transform: translateY(-3px) scale(1.05);
}

/* На планшетах */
@media (max-width: 1100px) {
    .hero-actions .btn {
        width: 170px;
        height: 75px;
        font-size: 0.75rem;
    }
}

/* На мобильных — 2 в ряд */
@media (max-width: 768px) {
    .hero-actions {
        gap: 10px;
        padding: 0 10px;
    }
    
    .hero-actions .btn {
        width: calc(50% - 10px);
        height: 70px;
        font-size: 0.7rem;
    }
    
    .hero-actions .btn .btn-icon {
        font-size: 1.1rem;
    }
}

/* На маленьких мобильных — в столбик */
@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
        height: 65px;
        font-size: 0.8rem;
    }
}
/* ===== ЗАГОЛОВКИ СТРАНИЦ (ЦЕНТРИРОВАНИЕ) ===== */
.page-header {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.page-header.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 2.8rem;
    margin: 0 0 15px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    font-family: var(--arcana-font-heading);
    color: var(--arcana-accent);
    text-align: center;
    width: 100%;
}

.title-ornament {
    color: var(--arcana-accent);
    font-size: 1.5rem;
    letter-spacing: 15px;
    opacity: 0.7;
    margin: 15px 0;
    text-align: center;
    width: 100%;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--arcana-text-dim);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

/* ===== СЕТКА СТАТЕЙ ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 30px;
    font-family: var(--arcana-font-heading);
    color: var(--arcana-accent);
}

.ornament {
    color: var(--arcana-accent);
    opacity: 0.6;
    margin: 0 15px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--arcana-surface);
    border: 1px solid var(--arcana-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    border-color: var(--arcana-accent);
}

.post-thumbnail {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.4rem;
    margin: 0 0 10px;
    font-family: var(--arcana-font-heading);
}

.post-title a {
    color: var(--arcana-accent);
}

.post-meta {
    color: var(--arcana-text-dim);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.post-excerpt {
    color: var(--arcana-text);
    margin-bottom: 15px;
}

.read-more {
    font-family: var(--arcana-font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 5, 21, 0.95) 100%);
    border-top: 1px solid var(--arcana-border);
    margin-top: 80px;
    padding: 60px 0 30px;
}

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

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

.widget {
    background: var(--arcana-surface);
    border: 1px solid var(--arcana-border);
    border-radius: 8px;
    padding: 20px;
}

.widget-title {
    font-size: 1.2rem;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--arcana-border);
    font-family: var(--arcana-font-heading);
    color: var(--arcana-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--arcana-border);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--arcana-text-dim);
    font-family: var(--arcana-font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-info {
    color: var(--arcana-text-dim);
    font-style: italic;
}

.mystic-symbol {
    color: var(--arcana-accent);
    margin: 0 5px;
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-symbol {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.error-content h1 {
    font-size: 3rem;
    font-family: var(--arcana-font-heading);
    color: var(--arcana-accent);
}

.error-message {
    font-size: 1.2rem;
    color: var(--arcana-text-dim);
    font-style: italic;
    margin: 20px 0 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--arcana-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--arcana-accent-2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--arcana-accent);
}

/* ===== УТИЛИТЫ ===== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.tarot-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1100px) {
    .hero-actions .btn {
        min-width: 160px;
        max-width: 180px;
        font-size: 0.75rem;
        padding: 14px 14px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .main-navigation .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-navigation.toggled .nav-menu {
        display: flex;
    }
    
    .main-navigation .nav-menu li a {
        padding: 12px;
        text-align: center;
    }
    
    .header-inner {
        flex-direction: column;
    }
    
    .site-branding {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        gap: 10px;
        padding: 0 10px;
    }
    
    .hero-actions .btn {
        min-width: calc(50% - 10px);
        max-width: none;
        flex: 1 1 calc(50% - 10px);
        font-size: 0.7rem;
        padding: 14px 10px;
    }
    
    .hero-actions .btn .btn-icon {
        font-size: 1.1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .moon {
        width: 50px;
        height: 50px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        min-width: 100%;
        flex: 1 1 100%;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
}