/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.3s, color 0.3s;
}

/* Тёмная тема (по умолчанию) */
body.theme-dark {
    background: linear-gradient(135deg, #0a0e2a 0%, #1a1a3e 100%);
    color: #ffffff;
}

body.theme-dark .app {
    background: rgba(15, 20, 45, 0.95);
}

body.theme-dark .item-card,
body.theme-dark .news-card,
body.theme-dark .settings-card,
body.theme-dark .top-item {
    background: rgba(30, 35, 70, 0.7);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

body.theme-dark .click-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Светлая тема */
body.theme-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #2c3e50;
}

body.theme-light .app {
    background: rgba(255, 255, 255, 0.95);
}

body.theme-light .item-card,
body.theme-light .news-card,
body.theme-light .settings-card,
body.theme-light .top-item {
    background: white;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.theme-light .click-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 16px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    margin-bottom: 20px;
}

.coins-display {
    font-size: 28px;
    font-weight: bold;
}

.stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.click-area {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.click-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    color: white;
}

.click-btn:active {
    transform: scale(0.95);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 12px;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.shop-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.cat-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 20px;
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.cat-btn.active {
    background: #9b59b6;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.item-info h4 {
    margin-bottom: 4px;
}

.item-info p {
    font-size: 12px;
    opacity: 0.8;
    margin: 2px 0;
}

.buy-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.news-card, .top-item, .settings-card {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.news-card h4 {
    margin-bottom: 8px;
    color: #9b59b6;
}

.news-card small {
    font-size: 10px;
    opacity: 0.6;
}

.top-item {
    padding: 12px;
    margin-bottom: 8px;
}

.settings-card {
    margin-bottom: 16px;
}

.settings-card h3 {
    margin-bottom: 12px;
}

.theme-btn {
    padding: 10px 20px;
    margin: 5px;
    background: #9b59b6;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}