/*
Theme Name: NextFrame Child
Description: Дочірня тема для NextFrame - платформи моушн-дизайнерів
Version: 1.0.0
Author: NextFrame Team
Template: twentytwentyfive
Text Domain: nextframe
*/

/* Підключення батьківської теми */
@import url('../twentytwentyfive/style.css');

/* Основні стилі NextFrame */
:root {
    /* Темна тема (за замовчуванням) */
    --nf-primary-bg: #0a0a0a;
    --nf-secondary-bg: #1a1a1a;
    --nf-accent-bg: #2a2a2a;
    --nf-text-primary: #ffffff;
    --nf-text-secondary: #b3b3b3;
    --nf-text-muted: #666666;
    --nf-accent-color: #00d4ff;
    --nf-accent-hover: #0099cc;
    --nf-border-color: #333333;
    --nf-shadow: rgba(0, 0, 0, 0.3);
}

/* Світла тема */
.theme-light {
    --nf-primary-bg: #ffffff;
    --nf-secondary-bg: #f8f9fa;
    --nf-accent-bg: #e9ecef;
    --nf-text-primary: #212529;
    --nf-text-secondary: #6c757d;
    --nf-text-muted: #adb5bd;
    --nf-accent-color: #007bff;
    --nf-accent-hover: #0056b3;
    --nf-border-color: #dee2e6;
    --nf-shadow: rgba(0, 0, 0, 0.1);
}

/* Застосування змінних */
body {
    background-color: var(--nf-primary-bg);
    color: var(--nf-text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Код блоки */
code, pre {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    background-color: var(--nf-accent-bg);
    border: 1px solid var(--nf-border-color);
    border-radius: 8px;
    padding: 0.5rem;
}

pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--nf-accent-color), var(--nf-accent-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* Картки */
.card {
    background: var(--nf-secondary-bg);
    border: 1px solid var(--nf-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--nf-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--nf-shadow);
}

/* Header стилі */
.site-header {
    background: var(--nf-secondary-bg);
    border-bottom: 1px solid var(--nf-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.site-title a {
    color: var(--nf-text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-description {
    color: var(--nf-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

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

.nav-menu a {
    color: var(--nf-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--nf-accent-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--nf-text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--nf-accent-bg);
    color: var(--nf-accent-color);
}

/* Footer стилі */
.site-footer {
    background: var(--nf-secondary-bg);
    border-top: 1px solid var(--nf-border-color);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--nf-text-primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--nf-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--nf-accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--nf-border-color);
    color: var(--nf-text-muted);
}

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

.post-card {
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.post-title a {
    color: var(--nf-text-primary);
    text-decoration: none;
}

.post-meta {
    color: var(--nf-text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.post-excerpt {
    color: var(--nf-text-secondary);
    line-height: 1.6;
    margin: 1rem 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
