/* Guild Rules CSS - Szabályzat oldal stílusok */

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
}

.relative {
    position: relative !important;
}

/* Specifikus display helyreállítások - CSAK GUILD RULES ELEMEKRE */
.guild-rules-container .user-info:not(.hidden) {
    display: flex !important;
}

.rules-section:not(.hidden),
.acceptance-status:not(.hidden),
.acceptance-result:not(.hidden) {
    display: block !important;
}

.status-accepted:not(.hidden),
.status-pending:not(.hidden),
.accept-btn:not(.hidden),
.reading-timer:not(.hidden) {
    display: flex !important;
}

/* === ALAP BEÁLLÍTÁSOK === */

/* Body reset - NO PADDING */
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* DEBUG: Box-sizing javítás + DEBUG KERETEKKEL */
* {
    box-sizing: border-box !important;
    /* border: 1px solid rgba(255, 0, 0, 0.3) !important; */
}

/* DEBUG: KIKAPCSOLVA */
/*
* {
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
}
*/

/* === ÚJ CÍM SZEKCIÓ === */
.page-title-section {
    background: linear-gradient(135deg, rgba(12, 20, 69, 0.9), rgba(26, 26, 46, 0.8));
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding: 40px 0;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.title-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.title-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    font-weight: 300;
    letter-spacing: 1px;
}
.guild-rules-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    color: #e0e6ed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    margin-top: -60px;
    padding: 0;
    padding-top: 80px;
    position: relative;
}

/* === RÉGI HEADER TÖRÖLVE - STICKY HEADER HASZNÁLATA === */

/* === RÉGI USER SZEKCIÓ CSS-EK TÖRÖLVE - STICKY HEADER HASZNÁLATA === */

/* === FŐ TARTALOM === */
.guild-rules-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* === LOADING ÉS ERROR ÁLLAPOTOK === */
.loading-section {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-left: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-section {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    margin: 2rem 0;
}

.error-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.reload-btn {
    background: #ffd700;
    color: #1a1a2e;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.reload-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

/* === SZABÁLYZAT SZEKCIÓ === */
.rules-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === METAADATOK === */
.rules-meta {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.rules-title {
    color: #ffd700;
    font-size: 2.2rem;
    margin: 0 0 1rem 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.rules-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.rules-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.rules-details i {
    color: #ffd700;
}

/* === ELFOGADÁSI STÁTUSZ === */
.acceptance-status {
    margin-bottom: 2rem;
}

.status-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #ffd700;
}

.status-accepted {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #28a745;
}

.status-accepted i {
    font-size: 2rem;
}

.status-pending {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffc107;
}

.status-pending i {
    font-size: 2rem;
}

.status-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.status-text p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

.expiration-info {
    font-style: italic;
    font-size: 0.9rem !important;
}

/* === SZABÁLYZAT TARTALOM === */
.rules-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.markdown-content {
    padding: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* === MARKDOWN STÍLUSOK === */
.markdown-content h1 {
    color: #ffd700;
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.markdown-content h2 {
    color: #ffed4e;
    font-size: 1.6rem;
    margin: 1.5rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid #ffd700;
}

.markdown-content h3 {
    color: #fff3cd;
    font-size: 1.3rem;
    margin: 1.2rem 0 0.8rem 0;
}

.markdown-content p {
    margin: 1rem 0;
    color: #e0e6ed;
}

.markdown-content ul, .markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin: 0.5rem 0;
    color: #e0e6ed;
}

.markdown-content strong {
    color: #ffd700;
    font-weight: 700;
}

.markdown-content em {
    color: #ffed4e;
    font-style: italic;
}

.markdown-content code {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.markdown-content blockquote {
    background: rgba(255, 215, 0, 0.05);
    border-left: 4px solid #ffd700;
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #fff3cd;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.markdown-content th, .markdown-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.markdown-content th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-weight: 600;
}

/* === ELFOGADÁS SZEKCIÓ === */
.rules-acceptance {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

/* === OLVASÁSI IDŐ SZÁMLÁLÓ === */
.reading-timer {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.reading-timer.danger {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.4);
    animation: pulse-danger 2s infinite;
}

.reading-timer.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.4);
    animation: pulse-success 2s infinite;
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0.1); }
}

@keyframes pulse-success {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0.1); }
}

.timer-icon {
    font-size: 2.5rem;
    color: #ffd700;
    transition: all 0.3s ease;
}

.reading-timer.danger .timer-icon {
    color: #ff4757;
    animation: shake 0.5s infinite;
}

.reading-timer.success .timer-icon {
    color: #28a745;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.timer-text {
    flex: 1;
    text-align: left;
}

.timer-text h4 {
    margin: 0 0 0.5rem 0;
    color: #ffd700;
    font-size: 1.2rem;
}

.reading-timer.danger .timer-text h4 {
    color: #ff4757;
}

.reading-timer.success .timer-text h4 {
    color: #28a745;
}

.timer-display {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #e0e6ed;
    margin: 0.5rem 0;
    letter-spacing: 2px;
}

.reading-timer.danger .timer-display {
    color: #ff4757;
}

.reading-timer.success .timer-display {
    color: #28a745;
}

#timerMessage {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    color: #e0e6ed;
}

.reading-timer.danger #timerMessage {
    color: #ff4757;
    font-weight: 600;
}

.reading-timer.success #timerMessage {
    color: #28a745;
    font-weight: 600;
}

.timer-progress {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4757 0%, #ffd700 50%, #28a745 100%);
    width: 0%;
    transition: width 1s ease;
    border-radius: 4px;
}

.acceptance-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    color: #fff3cd;
}

.acceptance-notice i {
    color: #ffc107;
    font-size: 1.5rem;
}

.accept-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.accept-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1ea587);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.accept-btn:disabled {
    background: rgba(108, 117, 125, 0.6);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.acceptance-result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    color: #28a745;
}

.result-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* === FOOTER === */
.guild-rules-footer {
    background: rgba(0, 0, 0, 0.6);
    border-top: 2px solid #ffd700;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffed4e;
}

/* === RESZPONZÍV DESIGN === */
@media (max-width: 768px) {
    .guild-rules-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .guild-logo h1 {
        font-size: 1.5rem;
    }
    
    .rules-details {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .guild-rules-main {
        padding: 1rem;
    }
    
    .rules-meta, .rules-acceptance {
        padding: 1.5rem;
    }
    
    .markdown-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .rules-title {
        font-size: 1.8rem;
    }
    
    .markdown-content h1 {
        font-size: 1.6rem;
    }
    
    .markdown-content h2 {
        font-size: 1.4rem;
    }
    
    .accept-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ============================
   HALL OF FAME - ELFOGADOTT TAGOK
   ============================ */

.hall-of-fame {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.hall-of-fame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.03), transparent);
    animation: hallShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hallShimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hall-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hall-header h3 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hall-header h3 i {
    margin-right: 0.5rem;
    color: #ffed4e;
}

.hall-header p {
    color: #e0e6ed;
    font-size: 1rem;
    opacity: 0.8;
}

.accepted-users-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.user-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.user-card:hover::before {
    left: 100%;
}

.user-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.guild-rules-container .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-card:hover .user-avatar {
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.guild-rules-container .user-info h4 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.guild-rules-container .user-details {
    color: #e0e6ed;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.user-details .detail-item {
    margin-bottom: 0.3rem;
}

.user-details .detail-item i {
    color: #ffed4e;
    margin-right: 0.5rem;
    width: 14px;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    color: #ffd700;
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-label {
    color: #e0e6ed;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.2rem;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #e0e6ed;
    opacity: 0.6;
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.loading-placeholder span {
    display: block;
    font-size: 1.1rem;
}

.no-users-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: #e0e6ed;
    opacity: 0.6;
}

.no-users-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
    opacity: 0.5;
}

.no-users-message h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.no-users-message p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive design a Hall of Fame-hez */
@media (max-width: 768px) {
    .hall-of-fame {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .hall-header h3 {
        font-size: 1.5rem;
    }
    
    .accepted-users-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .user-card {
        padding: 1rem;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .accepted-users-list {
        grid-template-columns: 1fr;
    }
    
    .user-card {
        padding: 1rem;
    }
}