/* Általános és alap stílusok */
:root {
    --primary-color: #7b2cbf; /* Vibráló lila */
    --secondary-color: #3f0088; /* Sötétebb lila */
    --background-color: #0d0d0d; /* Mélyfekete */
    --surface-color: #1a1a1a; /* Fekete háttérkártyákhoz */
    --accent-color: #00e5ff; /* Türkiz akcent */
    --text-color: #ffffff; /* Fehér szöveg */
    --muted-text-color: #b3b3b3; /* Halványabb szöveg */
    --error-color: #ff3366; /* Élénk piros hibaüzenetekhez */
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(13, 13, 13, 0) 70%);
    opacity: 0.2;
    animation: floating-glow 20s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes floating-glow {
    0% { transform: scale(1) translate(0, 0); }
    25% { transform: scale(1.1) translate(10%, -10%); }
    50% { transform: scale(1) translate(-10%, 10%); }
    75% { transform: scale(1.1) translate(10%, -10%); }
    100% { transform: scale(1) translate(0, 0); }
}

/* Header és navigáció */
header {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 25px;
}

nav a {
    color: var(--muted-text-color);
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.settings-icon {
    font-size: 1.5em;
    color: var(--muted-text-color);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.settings-icon:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Fő tartalom */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    background-color: var(--surface-color);
    padding: 50px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: slide-in 1s ease-out;
}

@keyframes slide-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 0 0 8px var(--primary-color);
}

/* Kezdőlap moduláris elrendezés */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 80px 20px;
    background: linear-gradient(to right, var(--secondary-color), var(--background-color));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;charset=UTF-8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="%231f1f1f"><path d="M4 0h1v20H4V0zM12 0h1v20h-1V0zM0 4h20v1H0V4zM0 12h20v1H0v-1z" fill-opacity="0.2"/></g></svg>');
    opacity: 0.8;
    z-index: 1;
}

.hero-section h1 {
    font-size: 4em;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-out;
}

.hero-section p {
    font-size: 1.5em;
    color: var(--muted-text-color);
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease-out;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.grid-item {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.grid-item h3 {
    color: var(--accent-color);
    font-size: 1.8em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Szerver infó kártya */
.server-info-card {
    text-align: center;
}

.server-info-card p {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color);
}

.server-ip {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
    font-size: 1.4em;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 10px 0;
}

.status-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite ease-in-out;
}

.status-dot.online {
    background-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.status-dot.offline {
    background-color: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

@keyframes pulse {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(0.9); }
}

#status-text.online { color: #00ff00; }
#status-text.offline { color: #ff0000; }

.posts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.post-card {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.7);
}

.post-card h4 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.2em;
}

.post-meta {
    font-size: 0.9em;
    color: var(--muted-text-color);
}

.social-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    display: block;
    margin-bottom: 10px;
}

.social-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Szavazás */
.vote-container {
    text-align: center;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.vote-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.vote-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.vote-results {
    margin-top: 30px;
    text-align: left;
}

.vote-results h3 {
    text-align: center;
    margin-bottom: 20px;
}

.result-bar-container {
    background: #333;
    height: 30px;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--surface-color);
}

.result-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 1s cubic-bezier(0.25, 0.1, 0.25, 1);
    animation: bar-fill 1s forwards;
}

@keyframes bar-fill {
    from { width: 0; }
}

.result-label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #fff;
    font-weight: bold;
    z-index: 1;
    font-size: 0.9em;
}

.result-bar-container p {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-weight: bold;
    color: #fff;
    z-index: 1;
}

.vote-message {
    margin-top: 20px;
    font-style: italic;
    color: var(--accent-color);
}


/* Discord kártyák és animációk */
.discord-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.discord-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.discord-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shine 4s infinite linear;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.discord-card:hover::before {
    opacity: 1;
}

@keyframes shine {
    0% { transform: rotate(0deg); opacity: 0; }
    50% { opacity: 0.2; }
    100% { transform: rotate(360deg); opacity: 0; }
}

.discord-icon {
    font-size: 4em;
    color: var(--accent-color);
    margin-bottom: 15px;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.discord-card h3 {
    margin: 0 0 10px;
    color: var(--primary-color);
}

.discord-card p {
    font-size: 0.9em;
    color: var(--muted-text-color);
}

/* Szabályok oldala */
.rules-intro {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--muted-text-color);
}

.rules-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
}

.tab-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.tab-button:hover, .tab-button.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.rules-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.rules-tab-content.active {
    display: block;
}

.rules-tab-content h3 {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.rules-tab-content ol {
    list-style: none;
    padding: 0;
}

.rules-tab-content ol li {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 15px;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rules-tab-content ol li:hover {
    transform: translateX(10px);
    box-shadow: 0 0 10px var(--primary-color);
}

.rules-tab-content ol li strong {
    color: var(--accent-color);
}

/* Admin panel stílusok */
.admin-panel {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    margin-bottom: 30px;
}

.admin-panel h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.admin-panel form input,
.admin-panel form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    background-color: #2b2b2b;
    border: 1px solid #4a4a4a;
    color: var(--text-color);
    border-radius: 5px;
}

.admin-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Modal ablakok */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.modal-content {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 25px var(--secondary-color);
    text-align: center;
    position: relative;
    animation: zoomIn 0.5s ease;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--muted-text-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--error-color);
}

.modal-content input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    background: #2b2b2b;
    border: 1px solid #4a4a4a;
    color: var(--text-color);
    border-radius: 5px;
}

.modal-content input::placeholder {
    color: #888;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.error-message {
    color: var(--error-color);
    font-size: 0.9em;
    margin-top: 10px;
}

/* Visszaszámláló oldal stílusa */
.countdown-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.countdown-container {
    padding: 40px;
    background-color: var(--surface-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: -100px;
}

.countdown-container h1 {
    font-size: 3em;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% { transform: scale(1); text-shadow: 0 0 10px var(--primary-color); }
    50% { transform: scale(1.05); text-shadow: 0 0 20px var(--primary-color); }
    100% { transform: scale(1); text-shadow: 0 0 10px var(--primary-color); }
}

.countdown-container p {
    color: var(--muted-text-color);
    font-size: 1.2em;
}

.countdown-container .timer {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    margin-top: 20px;
}

/* Új stílus a sarok gombnak */
.corner-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    color: var(--muted-text-color);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.corner-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Lábléc (Footer) stílusa */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(26, 26, 26, 0.8);
    color: var(--muted-text-color);
    border-top: 2px solid var(--secondary-color);
    position: relative;
}