/* KurilaBot - Минималистичная темная тема */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* FontAwesome иконки */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

.container {
    max-width: 420px;
    margin: 0 auto;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
}

/* Header */
.header {
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #00ffff, #ff00ff, #00ff00) 1;
}

@media (max-width: 480px) {
    .header {
        padding: 25px 15px;
    }
}

.header h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
}

.header p {
    font-size: 1rem;
    color: #cccccc;
}

/* Features Section */
.features {
    padding: 20px 15px;
}

@media (max-width: 480px) {
    .features {
        padding: 15px 10px;
    }
}

.feature-card {
    background: #0f0f0f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #1a1a1a;
    transition: all 0.3s ease;
    position: relative;
}

/* Убрали градиентную верхушку для feature-card */

.feature-card:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
    color: #ffffff;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.feature-description {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Game Stats */
.game-stats {
    background: #0f0f0f;
    color: #ffffff;
    padding: 12px;
    margin: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #1a1a1a;
    position: relative;
}

@media (max-width: 480px) {
    .game-stats {
        margin: 8px;
        padding: 10px 8px;
    }
}

/* Убрали градиентную верхушку для game-stats */

.game-stats h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: #1a1a1a;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #2a2a2a;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
    color: #00ffff;
}

.stat-label {
    font-size: 0.7rem;
    color: #cccccc;
}

/* Buttons */
.btn {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin: 8px 0;
    transition: all 0.3s ease;
}

/* Back Button - Универсальная кнопка "Назад" */
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(42, 42, 42, 0.8);
    color: #ffffff;
    border: 1px solid rgba(58, 58, 58, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(58, 58, 58, 0.9);
    border-color: rgba(78, 78, 78, 0.8);
    transform: scale(1.05);
}

.btn:hover {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.btn:active {
    background: #0f0f0f;
}

/* Reminders Menu */
.reminders-menu {
    margin-top: 15px;
    padding: 20px;
    background: 
        linear-gradient(135deg, 
            rgba(10, 10, 25, 0.95) 0%, 
            rgba(20, 20, 40, 0.9) 100%);
    border-radius: 8px;
    border: 1px solid rgba(0, 150, 255, 0.2);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideDown 0.3s ease-out;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 150, 255, 0.2);
}

.menu-header h4 {
    color: #e0e6ed;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.back-btn-small {
    background: 
        linear-gradient(135deg, 
            rgba(0, 50, 100, 0.6) 0%, 
            rgba(100, 0, 200, 0.6) 100%);
    color: #e0e6ed;
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.back-btn-small:hover {
    background: 
        linear-gradient(135deg, 
            rgba(0, 100, 200, 0.8) 0%, 
            rgba(200, 0, 100, 0.8) 100%);
    border-color: rgba(0, 150, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 5px rgba(0, 150, 255, 0.2);
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-btn {
    background: 
        linear-gradient(135deg, 
            rgba(20, 20, 40, 0.8) 0%, 
            rgba(30, 30, 60, 0.7) 100%);
    border: 1px solid rgba(0, 150, 255, 0.2);
    border-radius: 8px;
    padding: 18px;
    color: #e0e6ed;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.menu-btn:hover {
    background: 
        linear-gradient(135deg, 
            rgba(0, 50, 100, 0.6) 0%, 
            rgba(50, 0, 100, 0.6) 100%);
    border-color: rgba(0, 150, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(0, 150, 255, 0.2);
}

.menu-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 5px rgba(0, 150, 255, 0.4));
    flex-shrink: 0;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.menu-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #e0e6ed;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.menu-desc {
    font-size: 0.9rem;
    color: #b0b8c8;
    margin: 0;
    line-height: 1.3;
}

/* Убрали анимацию shimmer для кнопок */

.btn:hover {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: #aaaaaa;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #1a1a1a;
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #b0b8c8;
}

.loading.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 150, 255, 0.2);
    border-top: 4px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Animations */
@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding-bottom: 60px; /* Отступ для нижнего меню */
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666666;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
    position: relative;
    min-width: 40px;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: #00ffff;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #00ffff;
    border-radius: 1px;
}

.nav-item i {
    font-size: 1rem;
    margin-bottom: 1px;
}

.nav-label {
    font-size: 0.6rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .container {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .main-content {
        padding-bottom: 55px;
    }
    
    .nav-item {
        padding: 3px 6px;
        min-width: 35px;
    }
    
    .nav-item i {
        font-size: 0.9rem;
    }
    
    .nav-label {
        font-size: 0.55rem;
    }
}
    
    .header h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .back-btn {
        top: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 20px 10px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .features {
        padding: 15px 10px;
    }
    
    .feature-card {
        padding: 12px;
    }
    
    .game-stats {
        margin: 10px;
        padding: 15px 10px;
    }
}
