* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #0a0a0a;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(30, 60, 114, 0.7) 0%, rgba(42, 82, 152, 0.7) 100%),
        url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
    z-index: -1;
}

@keyframes sparkle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 200, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 120, 200, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 255, 120, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-y: auto;
}

.vote-panel {
    background: rgba(128, 128, 128, 0.5);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(100, 200, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    backdrop-filter: blur(15px);
    max-width: 650px;
    width: 100%;
    text-align: center;
    animation: slideIn 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.vote-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    background: linear-gradient(90deg, #2196F3, #FFD700, #F44336);
    border-radius: 20px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    z-index: -1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    margin-bottom: 30px;
}

.server-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid transparent;
    background: 
        linear-gradient(45deg, #4CAF50, #2196F3),
        linear-gradient(90deg, #2196F3, #FFD700, #F44336);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(76, 175, 80, 0.5); }
    to { box-shadow: 0 0 20px rgba(76, 175, 80, 0.8), 0 0 30px rgba(33, 150, 243, 0.5); }
}

.server-name {
    color: #fff;
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #2196F3, #FFD700, #F44336);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes rainbow {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

.server-description {
    color: #ccc;
    font-size: 1.1em;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.vote-buttons h2 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Orbitron', sans-serif;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.vote-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    border: none;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.vote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.vote-btn:hover::before {
    left: 100%;
}

.vote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
}

.vote-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 24px;
    margin-right: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.btn-title {
    font-size: 1.0em;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.btn-subtitle {
    font-size: 0.85em;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1.1;
}

.footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    color: #ccc;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.server-ip {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.server-ip span {
    color: #4CAF50;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.server-ip span:hover {
    color: #66BB6A;
    text-decoration: underline;
}

.copyright {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    font-family: 'Orbitron', sans-serif;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification span {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.notification span::before {
    content: "✓";
    margin-right: 8px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

@media (max-width: 768px) {
    .vote-panel {
        padding: 20px;
        margin: 10px;
    }
    
    .server-name {
        font-size: 2em;
    }
    
    .buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .vote-btn {
        justify-content: center;
        text-align: center;
    }
    
    .btn-text {
        text-align: center;
    }
    
    .btn-title {
        font-size: 0.9em;
    }
    
    .btn-subtitle {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .btn-title {
        font-size: 0.85em;
    }
    
    .btn-subtitle {
        font-size: 0.75em;
    }
}

@media (max-height: 600px) {
    .main-container {
        padding: 10px;
    }
    
    .vote-panel {
        padding: 20px;
    }
}

/* Efecte speciale pentru butoane */
.vote-btn:nth-child(1) { animation-delay: 0.1s; }
.vote-btn:nth-child(2) { animation-delay: 0.2s; }
.vote-btn:nth-child(3) { animation-delay: 0.3s; }
.vote-btn:nth-child(4) { animation-delay: 0.4s; }
.vote-btn:nth-child(5) { animation-delay: 0.5s; }
.vote-btn:nth-child(6) { animation-delay: 0.6s; }

/* Animatie de intrare pentru butoane */
.vote-btn {
    animation: slideUp 0.6s ease-out both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
