/* ===================================
   CUSTOM VARIABLES
   =================================== */
:root {
    --primary-color: #D42E2D;
    --secondary-color: #3788C4;
    --dark: #212529;
    --light: #f8f9fa;
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --color-primary: #D42E2D;
    --color-secondary: #3788C4;
    --color-text: #212529;
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-border: #e9ecef;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.2);
    --btn-padding: 10px 16px;
    --btn-padding-sm: 8px 12px;
    --btn-padding-lg: 12px 24px;
    --btn-font-size: 14px;
    --btn-font-weight: 500;
}

/* ===================================
   GLOBAL OVERRIDES
   =================================== */
html {
    height: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* ===================================
   BUTTON DESIGN SYSTEM
   =================================== */
.btn {
    padding: var(--btn-padding);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-sm {
    padding: var(--btn-padding-sm);
    font-size: 13px;
}

.btn-lg {
    padding: var(--btn-padding-lg);
    font-size: 16px;
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #b52624;
    border-color: #b52624;
    color: white;
}

/* Outline Primary Button */
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Secondary Button */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: white;
}

/* Outline Secondary Button */
.btn-outline-secondary {
    background-color: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Danger Button */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

/* Text Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Border Radius */
.card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.modal-content {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dadce0;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 46, 45, 0.1);
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background: #12161f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 900;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #e5e7eb;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #ffffff;
}

/* Navbar gombok stílusai */
.main-nav .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    border-radius: var(--border-radius);
}

.main-nav .btn-primary:hover {
    background-color: #b52624;
    border-color: #b52624;
    color: white !important;
}

.main-nav .btn-outline-nav {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #e5e7eb !important;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
}

.main-nav .btn-outline-nav:hover {
    background: #e5e7eb;
    color: #12161f !important;
    border-color: #e5e7eb;
}

/* ===================================
   HERO SECTION - FANTASY TAVERN
   =================================== */
.hero-fantasy {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(18, 22, 31, 0.85), rgba(18, 22, 31, 0.75)), 
                url('../img/bg-tavern.png') center/cover;
    position: relative;
    padding: 2rem 0;
}

.hero-fantasy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 46, 45, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.hero-title-fantasy {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.8);
}

.text-magic {
    color: #F59E0B;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.hero-description-fantasy {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #e5e7eb;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-fantasy {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-fantasy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.hero-hint {
	text-align: center;
    color: #9ca3af;
    font-size: 15px;
    font-style: italic;
}

.hero-hint i {
    color: #F59E0B;
}

.hero-user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
	align-items: center;
}

.hero-greeting {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F59E0B;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-greeting i {
    color: #D42E2D;
}

.hero-user-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline-fantasy {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #F59E0B;
    color: #F59E0B;
    backdrop-filter: blur(10px);
}

.btn-outline-fantasy:hover {
    background: #F59E0B;
    color: #12161f;
}

.hero-character {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.character-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.character-info {
    position: absolute;
    bottom: 0rem;
    left: 56%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
}

.character-name {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    color: #F59E0B;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 900;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(245, 158, 11, 0.3);
    border: 2px solid #F59E0B;
    border-bottom: 1px solid #F59E0B;
    position: relative;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%, 0 8px);
}

.character-name::before,
.character-name::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #F59E0B;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.character-name::before {
    top: 0;
    left: 0;
}

.character-name::after {
    top: 0;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.character-name > i {
    color: #F59E0B;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.8));
}

.character-speech {
    background: rgba(10, 10, 10, 0.98);
    color: #e5e7eb;
    padding: 1rem 1.25rem;
    border-radius: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
    border: 2px solid #F59E0B;
    border-top: 1px solid #F59E0B;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(245, 158, 11, 0.2);
    position: relative;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.character-speech::before {
    content: '✦';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 1rem;
    color: #F59E0B;
    opacity: 0.5;
}

.character-speech::after {
    content: '✦';
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 1rem;
    color: #F59E0B;
    opacity: 0.5;
}

.voice-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #F59E0B;
    color: #F59E0B;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.voice-btn:hover {
    background: #F59E0B;
    color: #1a1a1a;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.voice-btn:active {
    transform: scale(0.95);
}

.voice-btn i {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-user-actions {
        justify-content: center;
    }
    
    .character-img {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-fantasy {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .character-img {
        max-width: 300px;
    }
    
    .character-info {
        width: 95%;
        bottom: 0rem;
        left: 50%;
    }
    
    .character-name {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
    
    .character-speech {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }
}

.hero .text-primary {
    color: var(--primary-color) !important;
}

/* ===================================
   CARDS
   =================================== */
.card {
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* ===================================
   COMPETITION CARDS
   =================================== */
.competition-card .card-header {
    background-color: var(--primary-color);
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s;
}

.btn-google {
    background: white;
    border: 1px solid #dadce0;
    color: #3c4043;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #3c4043;
}

.btn-google .fab.fa-google {
    font-size: 18px;
    color: #4285f4;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: #12161f;
    border-top: 1px solid #1f2937;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* ===================================
   MODAL CUSTOMIZATION
   =================================== */
.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Wider modals for prize and participants */
.modal-xl {
    max-width: 90%;
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1400px;
    }
}

/* Prize and participants content should fill full width */
.modal-xl .modal-body {
    padding: 1.5rem;
}

#prizeContent,
#participantsContent {
    width: 100% !important;
    max-width: none !important;
}

#prizeContent > *,
#participantsContent > * {
    max-width: none !important;
}

#prizeContent table,
#participantsContent table {
    width: 100% !important;
    max-width: none !important;
    table-layout: auto;
}

#prizeContent img {
    max-width: 100%;
    height: auto;
}

#prizeContent p,
#prizeContent div,
#prizeContent ul,
#prizeContent ol {
    max-width: none !important;
}

/* ===================================
   SECTIONS & GRID
   =================================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e9ecef;
}

.grid::-webkit-scrollbar {
    height: 8px;
}

.grid::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.grid::-webkit-scrollbar-thumb:hover {
    background: #b52624;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-5 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   HERO ACTIONS
   =================================== */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================
   TOURNAMENT CARDS - LIGHT FANTASY
   =================================== */
.tournament-card {
    margin-bottom: 0;
    min-width: 320px;
    max-width: 380px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: linear-gradient(to bottom, #ffffff, #fefaf5);
    border: 2px solid #F59E0B;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Event detail oldalon szélesebb */
.event-detail-container .tournament-card {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Prize scheme oldalon szélesebb container */
.prize-scheme-container {
    max-width: 1400px;
    margin: 0 auto;
}

.prize-scheme-container .tournament-card {
    max-width: none;
}

.tournament-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tournament-banner {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.tournament-ornament {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.tournament-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex: 1;
}

.tournament-status {
    padding: 0.75rem 1rem;
    text-align: center;
    background: linear-gradient(to bottom, #fffbf5, #ffffff);
    border-bottom: 2px solid #fef3e2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-closed {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.status-full {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.tournament-body {
    padding: 1.25rem;
}

.tournament-description {
    margin-bottom: 1rem;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 0.9rem;
}

.tournament-prize-section {
    margin-bottom: 1rem;
}

.prize-button {
    width: 100%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prize-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(245, 158, 11, 0.4);
}

.tournament-details {
    margin-top: 1rem;
    border-top: 2px solid #fef3e2;
    padding-top: 0.75rem;
}

.tournament-info-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #fef3e2;
}

.tournament-info-row:last-child {
    border-bottom: none;
}

.info-icon {
    color: #F59E0B;
    font-size: 1rem;
    text-align: center;
}

.info-label {
    color: #aaaaaa;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-value {
    color: #c5c5c5;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: right;
}

/* Tournament card-on belül sötétebb színek fehér háttérhez */
.tournament-card .info-label {
    color: #4b5563;
}

.tournament-card .info-value {
    color: #1f2937;
}

/* Guild card-on belül világosabb színek fekete háttérhez */
.guild-card .info-label {
    color: #e5e7eb;
}

.guild-card .info-value {
    color: #ffffff;
}

.info-value a {
    color: #F59E0B;
    text-decoration: none;
    font-weight: 700;
}

.info-value a:hover {
    text-decoration: underline;
}

.tournament-footer {
    padding: 1.25rem;
    background: linear-gradient(to bottom, #fefaf5, #fef3e2);
    border-top: 2px solid #F59E0B;
}

.tournament-join-btn {
    width: 100%;
    background: linear-gradient(135deg, #D42E2D, #B52624);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(212, 46, 45, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 46, 45, 0.4);
    background: linear-gradient(135deg, #B52624, #9a2220);
}

.tournament-join-disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    opacity: 0.7;
}

.tournament-join-disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

/* ===================================
   BADGES
   =================================== */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge--open {
    background-color: #28a745;
    color: white;
}

.badge--closed {
    background-color: #dc3545;
    color: white;
}

.badge--full {
    background-color: #ffc107;
    color: #212529;
}


.close {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 46, 45, 0.25);
}

.form-actions {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.75rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

.or-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #dee2e6;
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

.or-divider span {
    background: #fff;
    padding: 0 1rem;
    color: #6c757d;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #616161;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Benefits Grid Items */
.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.benefit-text {
    color: #616161;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Steps Circle - Gothic Style */
.step-circle {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    color: #F59E0B;
    width: 96px;
    height: 96px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(245, 158, 11, 0.3);
    position: relative;
    border: 3px solid #F59E0B;
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
}

.step-circle span {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.step-circle::after {
    content: '';
    position: absolute;
    inset: 8px;
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.3);
    clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
    z-index: 0;
}

.step-title {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.step-text {
    color: #616161;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Guild Cards - Gothic Style */
.guild-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 2px solid #F59E0B;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(245, 158, 11, 0.2);
    position: relative;
    clip-path: polygon(
        0 20px,
        20px 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
    transition: all 0.3s ease;
}

.guild-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(245, 158, 11, 0.3);
    border-color: #FFA500;
}

.guild-card::before {
    content: '✦';
    position: absolute;
    top: 10px;
    left: 10px;
    color: #F59E0B;
    font-size: 1.2rem;
    opacity: 0.5;
}

.guild-card::after {
    content: '✦';
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #F59E0B;
    font-size: 1.2rem;
    opacity: 0.5;
}

.guild-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

.guild-rank {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #F59E0B;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.guild-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-align: center;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.guild-text {
    color: #9ca3af;
    line-height: 1.8;
    text-align: center;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
}

/* About Section */
.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    background: rgba(255,255,255,0.15);
    padding: 1rem;
    border-radius: 10px;
}

.about-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-feature-text {
    font-size: 0.9rem;
}

/* Gradient Background Sections */
.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gradient-warm {
    background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .competition-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .competition-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .about-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Mi ez az oldal szekció mobilra */
    .about-hero-section .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-hero-section h2 {
        font-size: 2rem !important;
    }
    
    .about-hero-section img {
        max-width: 60% !important;
    }
}
