/**
 * News.php CSS - Hír részletes oldal stílusai
 * 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;
    padding-top: 80px; /* Header magasság miatt */
}

/* MAIN LAYOUT */
.news-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-container {
    background: rgba(42, 42, 42, 0.9);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 600px;
}

/* LOADING ÉS ERROR ÁLLAPOTOK */
.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #b0b0b0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.news-error {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 20px;
}

.news-error h2 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 2rem;
}

.news-error p {
    color: #b0b0b0;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* BREADCRUMB */
.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.news-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-breadcrumb a:hover {
    color: #ffd700;
}

.separator {
    color: #666;
}

/* NEWS ARTICLE */
.news-article {
    margin-bottom: 40px;
}

.news-header {
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-category {
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
    color: #667eea !important;
}

.news-date {
    color: #b0b0b0;
}

.news-author {
    color: #ffd700;
}

.news-views {
    color: #b0b0b0;
}

.news-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.news-actions {
    display: flex;
    gap: 15px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-action:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    color: #667eea;
}

/* NEWS BODY */
.news-body {
    margin-bottom: 40px;
}

.news-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content strong {
    color: #ffd700;
    font-weight: 600;
}

.news-content ul, .news-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-content li {
    margin-bottom: 8px;
}

.news-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content a:hover {
    color: #ffd700;
}

/* KAPCSOLÓDÓ HÍREK */
.related-news {
    background: rgba(60, 60, 60, 0.6);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid #667eea;
}

.related-news h3 {
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.related-news-item:last-child {
    border-bottom: none;
}

.related-news-item:hover {
    padding-left: 10px;
    color: #ffd700;
}

.related-news-item a {
    color: #e0e0e0;
    text-decoration: none;
    flex: 1;
    transition: color 0.3s ease;
}

.related-news-item:hover a {
    color: #ffd700;
}

.related-news-date {
    color: #b0b0b0;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 15px;
}

/* KOMMENTEK SZEKCIÓ */
.comments-section {
    border-top: 2px solid rgba(102, 126, 234, 0.3);
    padding-top: 30px;
}

.comments-header h3 {
    color: #667eea;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

#comment-count {
    color: #b0b0b0;
    font-weight: normal;
}

/* KOMMENT FORM */
.comment-form {
    background: rgba(60, 60, 60, 0.6);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.5);
}

.comment-username {
    color: #ffd700;
    font-weight: 600;
}

#comment-text {
    width: 100%;
    min-height: 100px;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#comment-text:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
}

#comment-text::placeholder {
    color: #b0b0b0;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.character-count {
    color: #b0b0b0;
    font-size: 0.9rem;
}

#char-count {
    color: #667eea;
    font-weight: 600;
}

/* LOGIN PROMPT */
.comment-login-prompt {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.login-prompt-content i {
    font-size: 3rem;
    color: #5865F2;
    margin-bottom: 20px;
}

.login-prompt-content h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.login-prompt-content p {
    color: #b0b0b0;
    margin-bottom: 25px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

/* KOMMENTEK LISTA */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #b0b0b0;
}

.no-comments i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.no-comments p {
    font-size: 1.1rem;
}

.comment-item {
    background: rgba(60, 60, 60, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 3px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(70, 70, 70, 0.6);
    border-left-color: rgba(102, 126, 234, 0.6);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.comment-user-info {
    flex: 1;
}

.comment-username-display {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.95rem;
}

.comment-date {
    color: #b0b0b0;
    font-size: 0.85rem;
}

.comment-text {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.comment-like {
    color: #b0b0b0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-like:hover {
    color: #ffd700;
}

.comment-like.liked {
    color: #ffd700;
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .news-main {
        padding: 20px 15px;
    }
    
    .news-container {
        padding: 25px 20px;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-meta span {
        justify-content: center;
    }
    
    .news-actions {
        justify-content: center;
    }
    
    .comment-form-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .btn-primary {
        justify-content: center;
    }
    
    .related-news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .related-news-date {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding: 20px 15px;
    }
    
    .news-title {
        font-size: 1.8rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* SIMPLE NOTIFICATION ANIMÁCIÓK */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.simple-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.simple-notification .notification-content i {
    font-size: 1.2rem;
}

/* FOOTER OVERRIDE */
.main-footer {
    margin-top: 60px;
    padding: 40px 0 20px 0;
    background: rgba(12, 20, 69, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-center h3 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.footer-center > p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
    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;
}

/* 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);
}