/* public/css/pages/vote.css */

/* Контейнер страницы голосования */
#voting-screen {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.socials-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}

#skin-container { 
    width: 300px; 
    height: 400px; 
    border: 4px solid #000; 
    background: rgba(0,0,0,0.3); 
    margin-bottom: 20px; 
}

/* Панель управления */
.controls-box { 
    background: #2b2b2b; 
    padding: 20px;
    border: 4px solid #000; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 320px; 
    box-sizing: border-box;
}

.panel-title { 
    color: #fff; margin-bottom: 20px; font-size: 14px;
    text-transform: uppercase; text-align: center; 
}

/* Кнопки действий */
.buttons-row { display: flex; gap: 10px; width: 100%; margin-bottom: 20px; }

.btn-action { 
    flex: 1; height: 50px; 
    font-family: inherit; font-size: 12px; font-weight: bold; 
    cursor: pointer; border: 2px solid #000; color: #fff;
    display: flex; align-items: center; justify-content: center; 
    text-transform: uppercase; transition: 0.2s;
    background: #444;
}

.btn-action.active {
    opacity: 1; transform: scale(1.05);
    border-color: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.btn-action.inactive {
    opacity: 0.5; filter: grayscale(80%);
    transform: scale(0.95); border-color: #000;
}

#btn-increase { background: #2ecc71; }
#btn-increase:hover { background: #27ae60; }
#btn-decrease { background: #e74c3c; }
#btn-decrease:hover { background: #c0392b; }

/* Кнопки доната */

.btn-da, .btn-crypto {
    font-family: inherit; font-size: 12px; font-weight: bold;
    text-align: center; padding: 15px; border: 4px solid #000;
    cursor: pointer; text-transform: uppercase; transition: 0.2s;
    width: 100%; box-sizing: border-box; margin-top: 10px; color: #fff;
}

/* Скрываем стили DA, так как кнопка закомментирована */
.btn-da { display: none; } 

/* Делаем кнопку DonatePay синей и нейтральной */
.btn-crypto { background: #3498db; }
.btn-crypto:hover { background: #2980b9; border-color: #fff; transform: scale(1.02); }
.rate-info { font-size: 8px; color: #777; margin-top: 15px; text-align: center; }

/* Копирование */
.copy-btn-wrapper {
    background: #111; border: 2px dashed #555; border-radius: 8px;
    padding: 15px 10px; cursor: pointer; margin-bottom: 20px;
    transition: all 0.2s; display: flex; flex-direction: column;
    align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
}
.copy-btn-wrapper:hover {
    background: #222; border-color: #fff;
    transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.copy-text { font-size: 14px; font-weight: bold; letter-spacing: 1px; text-shadow: 1px 1px 0 #000; }
.copy-label { font-size: 8px; color: #777; background: #2b2b2b; padding: 4px 8px; border-radius: 4px; }

/* Соцсети */
#social-buttons-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.social-btn {
    display: block; width: 100%; padding: 10px 5px;
    background: #555; border: 3px solid #000; color: #fff;
    text-decoration: none; font-size: 10px; text-align: center;
    font-family: 'Press Start 2P', cursive; text-transform: uppercase;
    box-shadow: inset -3px -3px rgba(0,0,0,0.3);
    cursor: pointer; transition: transform 0.1s; box-sizing: border-box;
}
.social-btn:hover { background: #666; transform: scale(1.05); border-color: #fff; }
.soc-twitch { background: #6441a5; }
.soc-youtube { background: #ff0000; }
.soc-telegram { background: #0088cc; }

/* Модалки и оверлеи */
#warning-modal {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 15000;
    align-items: center; justify-content: center;
}
.warning-box {
    background: #202020; border: 4px solid #ff5555;
    padding: 30px; width: 300px; text-align: center;
    box-shadow: 0 0 50px rgba(255, 85, 85, 0.3);
    animation: popIn 0.3s;
}
.warning-box .btn { 
    border: 2px solid #000; padding: 10px; cursor: pointer; font-family: inherit; font-size: 10px; 
}

#success-overlay {
    display: none; position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.95); z-index: 9999;
    flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
}
#anim-skin-container { width: 300px; height: 400px; margin-bottom: 30px; position: relative; z-index: 10001; }
#success-title { 
    font-size: 30px; text-align: center; line-height: 1.5;
    text-shadow: 4px 4px #000; margin-bottom: 20px; z-index: 10001; animation: popIn 0.5s; color: #ffd700;
}
.close-anim-btn {
    background: transparent; border: 2px solid #fff; color: #fff; 
    padding: 10px 30px; font-family: inherit; cursor: pointer;
    z-index: 10001; transition: 0.2s;
}
.close-anim-btn:hover { background: #fff; color: #000; }

@keyframes popIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Кнопка назад */
.btn-back-link {
    background: #7f8c8d; color: white; font-family: inherit;
    border: 4px solid #000; padding: 15px 30px; font-size: 14px; 
    cursor: pointer; text-transform: uppercase; text-decoration: none;
    display: inline-block; margin-bottom: 30px; box-shadow: 4px 4px 0px #000;
}
.btn-back-link:hover { background: #95a5a6; transform: translate(-2px, -2px); box-shadow: 6px 6px 0px #000; }
.btn-back-link:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px #000; }

/* Уведомление о копировании */
#copy-notification {
    position: fixed; left: 50%; transform: translateX(-50%);
    background: #2ecc71; color: #fff; padding: 15px 30px;
    border: 4px solid #000; font-family: 'Press Start 2P', cursive;
    font-size: 12px; z-index: 20000; box-shadow: 6px 6px 0 #000;
    text-transform: uppercase; display: none; opacity: 0; top: 20px;
}
@keyframes flyUpDissolve {
    0% { opacity: 0; top: 30px; transform: translateX(-50%) scale(0.9); }
    10% { opacity: 1; top: 20px; transform: translateX(-50%) scale(1); }
    70% { opacity: 1; top: 20px; }
    100% { opacity: 0; top: -50px; }
}
.notification-fly { display: block !important; animation: flyUpDissolve 2.5s ease-in-out forwards; }

/* Эффекты фона и частицы */
.gold-bg { background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(0,0,0,0.95) 90%) !important; }
.fire-bg { background: radial-gradient(circle, rgba(255, 69, 0, 0.2) 0%, rgba(0,0,0,0.95) 90%) !important; }

.particle {
    position: absolute; font-family: 'Press Start 2P', cursive;
    font-weight: bold; user-select: none; pointer-events: none;
    z-index: 9998; opacity: 0;
}
@keyframes floatUp { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-100vh) scale(1.5); opacity: 0; } }
@keyframes fallDown { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(100vh) scale(1.5); opacity: 0; } }

/* Mobile logic for vote page */
@media only screen and (max-width: 900px) {
    #voting-screen { flex-direction: column; align-items: center; gap: 20px; }
    .socials-container { width: 100%; order: 2; }
    #social-buttons-list { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .social-btn { width: auto !important; padding: 10px 15px !important; }
    .controls-box { width: 100%; max-width: 400px; order: 1; }
    #skin-container { width: 200px !important; height: 300px !important; margin: 0 auto 20px auto; }
}

/* Кнопка закрытия в стиле Minecraft */
.btn-minecraft {
    background: #e74c3c; /* Красный оттенок */
    color: #fff;
    border: 4px solid #000;
    box-shadow: inset -4px -4px rgba(0,0,0,0.2), 4px 4px 0 #000; /* Внутренняя тень + жесткая внешняя тень */
    font-family: 'Press Start 2P', cursive;
    padding: 15px 20px;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.1s;
}

.btn-minecraft:hover {
    background: #c0392b;
    transform: translate(-2px, -2px); /* Эффект нажатия */
    box-shadow: inset -4px -4px rgba(0,0,0,0.2), 6px 6px 0 #000;
}

.btn-minecraft:active {
    transform: translate(2px, 2px);
    box-shadow: inset -4px -4px rgba(0,0,0,0.2), 2px 2px 0 #000;
}

/* Инстаграм (градиент сложен в css, сделаем красивый малиновый цвет) */
.soc-instagram { 
    background: #d62976; 
}
.soc-instagram:hover {
    background: #e1306c; /* Чуть светлее при наведении */
}

/* ТикТок (черный/темный) */
.soc-tiktok { 
    background: #000000; 
    border-color: #ff0050; /* Красная обводка для стиля */
}
.soc-tiktok:hover {
    border-color: #00f2ea; /* Голубая при наведении (эффект глитча) */
}

/* Обычные ссылки (нейтральный синий/серый) */
.soc-link { 
    background: #34495e; 
}
.soc-link:hover { 
    background: #2c3e50; 
}