/*
Theme Name: Franchises360 - Киберспортивная Аналитика
Author: PBN Creative
Description: Динамичный темный дизайн для портала о киберспорте, турнирах и мете.
Version: 1.0.0
*/

:root {
    /* Cyber Palette */
    --primary: #9D00FF;        /* Electric Purple */
    --secondary: #00F0FF;      /* Neon Cyan */
    --dark-bg: #0F0F12;        /* Deep Space */
    --card-bg: #1A1A20;        /* Tech Gray */
    --text-main: #FFFFFF;
    --text-muted: #A0A0B0;
    --white: #FFFFFF;
    --border: rgba(157, 0, 255, 0.2);
    
    --container-width: 1240px;
    --content-width: 900px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 85px;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Tech Style */
.site-header {
    background: rgba(15, 15, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    flex-shrink: 0;
    text-shadow: 0 0 15px rgba(157, 0, 255, 0.5);
}

.logo span {
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.main-nav ul {
    display: flex;
    gap: 3.5rem;
    list-style: none;
}

.main-nav a {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-nav a:hover {
    color: var(--secondary);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
}

/* Hero - Option D (Split-screen) */
.hero-section {
    display: flex;
    min-height: 500px;
    margin-bottom: 5rem;
    background: var(--card-bg);
    overflow: hidden;
    border-bottom: 4px solid var(--secondary);
}

.hero-left {
    flex: 1;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #0F0F12 0%, #1A1A20 100%);
}

.hero-right {
    flex: 1;
    background: url('banner.jpg') center/cover no-repeat;
    position: relative;
}

.hero-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0F0F12, transparent);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-content h1 span {
    color: var(--primary);
    display: block;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
}

/* Cyber Blocks */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.info-card {
    background: var(--card-bg);
    padding: 3rem;
    position: relative;
    border: 1px solid var(--border);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Post Cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 0;
    overflow: hidden;
    border-bottom: 3px solid var(--primary);
    transition: var(--transition);
}

.post-card:hover {
    border-bottom-color: var(--secondary);
    transform: scale(1.02);
}

.post-thumb {
    height: 240px;
    position: relative;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
}

.post-cat {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
}

.post-content {
    padding: 2rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    height: 3.6em;
    overflow: hidden;
}

.post-link {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Archive Button */
.archive-btn-wrap {
    text-align: center;
    margin-bottom: 6rem;
}

.btn-cyber {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-cyber:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.4);
}

/* Single Post */
.post-container {
    max-width: var(--content-width);
    margin: 4rem auto;
    background: var(--card-bg);
    padding: 5rem;
    border: 1px solid var(--border);
}

.post-header {
    text-align: center;
    margin-bottom: 4rem;
}

.post-header h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.post-meta {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--secondary);
}

.post-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.post-body p {
    margin-bottom: 2rem;
}

.post-body h2, .post-body h3 {
    margin-top: 5rem;
    margin-bottom: 2rem;
    color: var(--white);
}

/* Lists in post */
.post-body ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.post-body ul li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
}

.post-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 5rem 0;
}

.pagination-list {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.pagination-list a, .pagination-list span {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.pagination-list .is-active, .pagination-list a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(0, 240, 255, 0.05);
}

/* Footer */
.site-footer {
    background: #08080A;
    padding: 6rem 0 3rem;
    border-top: 2px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-brand span {
    color: var(--secondary);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 450px;
}

.footer-nav h4 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #505060;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-inner { gap: 2rem; }
    .main-nav ul { gap: 2rem; }
    .hero-section { flex-direction: column; }
    .hero-right { height: 300px; }
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 2rem;
        border-bottom: 2px solid var(--primary);
    }
    .main-nav.is-active { display: block; }
    .main-nav ul { flex-direction: column; gap: 1.5rem; }
    
    .info-grid, .post-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .post-container { padding: 2.5rem; }
    .post-header h1 { font-size: 2.2rem; }
}

/* Стили блока мониторинга турниров */
.events-tracker {
    background: linear-gradient(90deg, #1A1A20 0%, #0F0F12 100%);
    border-left: 4px solid var(--secondary);
    padding: 3rem;
    margin-bottom: 6rem;
    position: relative;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.status-badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--secondary);
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 20px;
}

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.t-date {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.t-name {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 800;
}

.tracker-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Стили блока методологии анализа */
.staff-section {
    background: var(--card-bg);
    padding: 5rem;
    margin-bottom: 6rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.staff-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: center;
}

.staff-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.staff-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.staff-metrics {
    display: flex;
    gap: 4rem;
}

.metric-item strong {
    display: block;
    font-size: 2.5rem;
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.metric-item span {
    color: #606070;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.tech-circle {
    width: 250px;
    height: 250px;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    animation: rotate 20s linear infinite;
}

.tech-inner {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--primary);
    animation: counter-rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@media (max-width: 1024px) {
    .tracker-grid, .staff-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .staff-visual { display: none; }
}
