/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   Header, Footer, Components
   Dark Crypto Premium Theme
   ============================================ */

/* ============================================
   HEADER СТИЛИ
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.site-header.sticky {
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    background: rgba(18, 24, 41, 0.95);
}

/* Top Bar */
.header-top {
    background: var(--bg-primary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contacts {
    display: flex;
    gap: 20px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.header-contact-item:hover {
    color: var(--accent-cyan);
}

/* Main Header */
.header-main {
    padding: 20px 0;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after {
    width: 100%;
}

.header-cta {
    flex-shrink: 0;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.hamburger span {
    display: block;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-secondary);
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 60px 0 30px;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu li a {
    display: block;
    padding: 12px 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   CRYPTO TICKER
   ============================================ */

.crypto-ticker-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-glow);
    padding: 12px 0;
    overflow: hidden;
}

.crypto-ticker-scroll {
    display: flex;
    gap: 40px;
    animation: scroll 60s linear infinite;
    will-change: transform;
}

.crypto-ticker-scroll:hover {
    animation-play-state: paused;
}

.crypto-ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.crypto-ticker-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.crypto-symbol {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

.crypto-price {
    font-weight: 600;
    color: var(--text-secondary);
}

.crypto-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.crypto-ticker-item.positive .crypto-change {
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
}

.crypto-ticker-item.negative .crypto-change {
    color: var(--accent-red);
    background: rgba(255, 51, 102, 0.1);
}

/* ============================================
   FOOTER СТИЛИ
   ============================================ */

.site-footer {
    background: var(--bg-secondary);
    margin-top: 80px;
    border-top: 2px solid var(--border-glow);
}

/* Footer Widgets */
.footer-widgets {
    padding: 60px 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: var(--text-secondary);
}

.footer-widget ul li a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

/* Exchanges Section */
.footer-exchanges {
    padding: 60px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.exchanges-title {
    margin-bottom: 40px;
}

.exchanges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.exchange-item {
    text-align: center;
    padding: 40px 30px;
}

.exchange-logo {
    margin-bottom: 20px;
}

.exchange-logo img {
    max-width: 120px;
    height: auto;
}

.exchange-item h4 {
    margin-bottom: 12px;
}

.exchange-item p {
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* Footer CTA */
.footer-cta {
    padding: 60px 0;
}

.cta-content {
    text-align: center;
    padding: 60px 40px;
    background: var(--gradient-card);
}

.cta-content h2 {
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 30px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-nav-menu li a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-nav-menu li a:hover {
    color: var(--accent-cyan);
}

.heart {
    color: var(--accent-red);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПОСТОВ
   ============================================ */

.post-thumbnail {
    position: relative;
}

.post-thumbnail .post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

/* Конвертер в сайдбаре */
.crypto-converter-form .converter-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
}

.crypto-converter-form .converter-select {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
}

.converter-swap {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.converter-swap-btn {
    background: var(--gradient-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.converter-swap-btn:hover {
    transform: rotate(180deg);
}

.converter-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.result-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.result-currency {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 5px;
}

/* Fear & Greed виджет */
.fear-greed-content {
    text-align: center;
}

.fear-greed-meter {
    position: relative;
    margin: 30px 0;
}

.meter-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.meter-value {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.value-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.value-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ============================================
   PRICING TABLE СТИЛИ
   ============================================ */

.pricing-section {
    padding: 80px 0;
}

.pricing-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s;
}

.pricing-card.popular,
.pricing-card.premium {
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-secondary);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.popular-badge,
.premium-badge {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.pricing-price {
    margin-bottom: 20px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-save {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.pricing-faq,
.pricing-guarantees {
    margin-top: 60px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.faq-item h4 {
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.guarantee-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .header-main-inner {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation,
    .header-cta {
        display: none;
    }
    
    .header-top-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .exchanges-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .guarantees-grid {
        grid-template-columns: 1fr;
    }
}
