/* 
 * Main CSS for Cabal Russia
 * Modern dark theme with white text
 * Optimized for mobile devices
 */

/* Importing base variables */
@import 'variables.css';

/* Importing separated CSS files */
@import 'header.css';
@import 'footer.css';
@import 'buttons.css';
/*@import 'gallery.css';*/

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-primary);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-md);
}

/* Main Content */
main {
    flex: 1;
    margin-top: 70px;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    width: 100%;
}

/* Section Styles */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header h2 span {
    color: var(--color-accent-primary);
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(180deg, #2b2b35 0%, #0e0e12 100%);
    background-size: cover;
    background-position: center;
    color: var(--color-text-primary);
    margin-top: 0;
    padding: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), var(--color-bg-primary));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 var(--spacing-lg);
    margin-top: -40px; /* Adjust to center content vertically */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    color: var(--color-accent-primary);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-primary), transparent);
}

.hero p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-secondary);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.hero-buttons .btn {
    min-width: 180px;
    font-size: var(--font-size-md);
    padding: 0.9rem 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    background-color: var(--color-bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background-color: var(--color-bg-tertiary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-medium);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 62, 62, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.feature-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.2), rgba(255, 62, 62, 0));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* News Section */
.news-section {
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.news-card {
    background-color: var(--color-bg-tertiary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-medium);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.news-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: var(--spacing-lg);
    position: relative;
}

.news-date {
    color: var(--color-accent-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.news-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.news-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-bg-tertiary), var(--color-bg-secondary));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    padding: var(--spacing-4xl) 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.cta-content h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
}

.cta-content p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Screenshots */
.screenshots {
    position: relative;
}

.screenshots-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.screenshot {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.screenshot:hover img {
    transform: scale(1.02);
}

.screenshot:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons .btn {
        min-width: 150px;
    }
    
    .screenshot {
        width: 100%;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }
    
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot {
        width: 100%;
    }
    
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .online-counter {
        margin-right: 10px;
        padding: 0 10px;
    }
    
    .battery-container {
        width: 32px;
        height: 18px;
    }
    
    .battery-percentage {
        font-size: 8px;
    }
    
    .count-value {
        font-size: 14px;
    }
    
    .count-label {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-content, 
    .cta-content {
        padding: 0 var(--spacing-md);
    }
    
    .feature-card,
    .news-content {
        padding: var(--spacing-md);
    }
    
    .screenshot {
        height: 250px;
    }
    
    .news-card {
        border-radius: var(--border-radius-md);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .news-image {
        height: 180px;
    }
    
    h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
}

/* Utility Classes */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.25;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .feature-card:hover,
    .news-card:hover {
        transform: none;
    }
    
    .main-nav a:hover {
        transform: none;
    }
}

/* Online Counter Battery Styles */
.online-counter {
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
    margin-right: 15px;
    height: 40px;
}

.battery-container {
    width: 40px;
    height: 22px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    position: relative;
    margin-right: 8px;
    overflow: hidden;
}

.battery-container::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-radius: 0 2px 2px 0;
}

.battery-fill {
    height: 100%;
    background: linear-gradient(to right, #22cc22, #ffcc22, #ff5555);
    width: 0%;
    transition: width 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.battery-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: battery-shine 3s infinite;
}

.battery-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    z-index: 2;
    pointer-events: none;
    text-align: center;
    width: 100%;
}

@keyframes battery-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.online-count {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.count-value {
    font-size: 16px;
    color: #ffcc22;
    transition: color 0.3s ease;
}

.count-label {
    font-size: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    transition: color 0.3s ease;
} 