/**
 * Index CSS - Main Landing Page Styling
 * Eternal Illusion - 2025. október 26.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0c1445 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;
}

.logo {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    font-weight: 300;
}

.welcome-card, .error-card, .login-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.welcome-card {
    border-left: 5px solid #00ff88;
}

.error-card {
    border-left: 5px solid #ff4757;
}

.login-card {
    border-left: 5px solid #00d4ff;
}

.welcome-card h2 {
    color: #00ff88;
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.error-card h2 {
    color: #ff4757;
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.login-card h2 {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.user-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.username {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 10px;
}

.roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.role-badge {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.discord-button {
    background: linear-gradient(45deg, #7289da 0%, #5865f2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px 10px;
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.3);
}

.discord-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.5);
}

.logout-button {
    background: linear-gradient(45deg, #ff4757 0%, #ff3742 100%);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.logout-button:hover {
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5);
}

.message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 20px 0;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-online { background-color: #00ff88; }
.status-offline { background-color: #ff4757; }

.icon {
    font-size: 2rem;
}

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

.welcome-card, .error-card, .login-card {
    animation: fadeIn 0.6s ease-out;
}

.test-link {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 20px;
    display: inline-block;
}

.test-link:hover {
    text-decoration: underline;
}

/* FOOTER STYLING */
.main-footer {
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(12, 20, 69, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    padding: 40px 0 20px 0;
    backdrop-filter: blur(10px);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-center h3 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-center p {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-copyright {
    color: #888;
    font-size: 1rem;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.footer-links .separator {
    color: #666;
    font-size: 1.2rem;
}

/* DINAMIKUS CONTENT GRID - 60% / 40% LAYOUT */
.content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; /* 60% - 40% arány */
    gap: 20px;
    max-width: 100vw;
    width: 100%;
    margin: 0;
    padding: 40px 20px;
    grid-template-areas: "news widgets";
}

.news-section {
    grid-area: news;
    min-width: 0; /* Grid overflow elkerüléséhez */
}

.widgets-section {
    grid-area: widgets;
    min-width: 0; /* Grid overflow elkerüléséhez */
}

/* HÍREK SZEKCIÓ STYLING */
.news-container {
    background: rgba(42, 42, 42, 0.9);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #b0b0b0;
    font-size: 1rem;
    font-weight: 300;
}

/* HÍREK - FEATURED CIKK */
.news-article.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.news-article.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.news-header h3 {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-comments {
    color: #667eea !important;
}

/* API HIBA FIGYELMEZTETŐ */
.news-api-error {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffc107;
    font-size: 0.9rem;
}

/* KISEBB HÍREK META INFORMÁCIÓ */
.news-meta-small {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
    font-size: 0.8rem;
    color: #b0b0b0;
}

.news-meta-small span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-author-small {
    color: #b0b0b0;
}

.news-category-small {
    color: #667eea;
}

.news-comments-small {
    color: #ffd700;
}

.news-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #ffd700;
    transform: translateX(5px);
}

/* HÍREK LISTA */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.news-article {
    background: rgba(60, 60, 60, 0.6);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.news-article:hover {
    background: rgba(70, 70, 70, 0.8);
    transform: translateX(5px);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.news-header h4 {
    color: #ffd700;
    font-size: 1.1rem;
    flex: 1;
}

.news-date {
    color: #b0b0b0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.read-more-small {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-small:hover {
    color: #ffd700;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* WIDGETS SZEKCIÓ STYLING */
.widgets-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: rgba(42, 42, 42, 0.9);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.widget-header h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin: 0;
}

.widget-content {
    color: #e0e0e0;
}

/* DISCORD STATUS WIDGET */
.discord-status p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.discord-activity {
    margin-top: 20px;
}

.discord-activity h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1rem;
}

.discord-activity ul {
    list-style: none;
    padding: 0;
}

.discord-activity li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.discord-activity li:last-child {
    border-bottom: none;
}

/* PROGRESS WIDGET */
.progress-summary h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.difficulty-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.difficulty {
    min-width: 70px;
    font-weight: 600;
    font-size: 0.9rem;
}

.difficulty.mythic {
    color: #ff6b35;
}

.difficulty.heroic {
    color: #ffd700;
}

.progress {
    min-width: 40px;
    font-weight: bold;
    color: #667eea;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-fill.complete {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
}

.next-raid {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.next-raid h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

/* M+ LEADERBOARD WIDGET */
.leaderboard {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.leaderboard li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.leaderboard li:hover {
    background: rgba(102, 126, 234, 0.2);
}

.leaderboard li:first-child {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.player-name {
    font-weight: 600;
    color: #e0e0e0;
}

.score {
    color: #667eea;
    font-weight: bold;
}

.weekly-best {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weekly-best h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

/* RECRUITMENT WIDGET */
.class-needs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.class-need {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.class-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.class-name {
    flex: 1;
    font-weight: 600;
}

.priority {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.priority.high {
    background: rgba(255, 107, 53, 0.3);
    color: #ff6b35;
    border: 1px solid #ff6b35;
}

.priority.medium {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.priority.low {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.recruitment-info {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.recruitment-info p {
    margin-bottom: 5px;
}

/* STATS WIDGET */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* WIDGET LINKEK */
.widget-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.widget-link:hover {
    color: #ffd700;
    transform: translateX(5px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 3fr 2fr; /* Megtartjuk a 60-40 arányt */
        gap: 15px;
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
        grid-template-areas: 
            "news"
            "widgets";
    }
    
    .news-section,
    .widgets-section {
        flex: none;
    }
    
    .news-container {
        padding: 20px;
    }
    
    .widget {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        padding: 15px 10px;
    }
    
    .news-container,
    .widget {
        padding: 15px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .widget-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .footer-center h3 {
        font-size: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links .separator {
        display: none;
    }
    
    .main-footer {
        margin-top: 40px;
        padding: 30px 0 15px 0;
    }
}

/* GUILD-ONLY HÍREK STÍLUSAI */
.guild-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 3px 6px rgba(255, 215, 0, 0.4);
    border: 1px solid #ffeb3b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guild-badge i {
    font-size: 0.8rem;
    margin-right: 3px;
}

.news-article.guild-only {
    border-left: 4px solid #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.news-article.guild-only:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #764ba2;
}

.guild-badge:hover {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffd700 100%);
    transform: scale(1.08);
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.6);
}