/**
 * Hírek Rendszer CSS
 * Prefix: nh- (news-hirek)
 */

/* ================================
   CONTAINER & LAYOUT
   ================================ */
#hirek-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ================================
   HEADER & FILTERS
   ================================ */
.nh-header {
    margin-bottom: 2rem;
}

.nh-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color, #f59e0b);
}

.nh-filters {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nh-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nh-filter-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.nh-select {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color, #e5e7eb);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.nh-select:hover {
    border-color: var(--primary-color, #f59e0b);
    background: rgba(0, 0, 0, 0.5);
}

/* ================================
   CARDS GRID
   ================================ */
.nh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nh-card {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(24, 24, 37, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
    border-color: var(--primary-color, #f59e0b);
}

.nh-card-kiemelt {
    position: relative;
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.nh-card-kiemelt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    animation: nh-shimmer 3s infinite;
}

@keyframes nh-shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.nh-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.nh-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.3;
}

.nh-card-content {
    padding: 1.25rem;
}

.nh-badge-kiemelt {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.nh-card-title {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-color, #e5e7eb);
    line-height: 1.4;
}

.nh-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #9ca3af);
}

.nh-no-results {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-secondary, #9ca3af);
}

/* ================================
   PAGINATION & VIEW MODE
   ================================ */
.nh-pagination-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.nh-view-mode {
    display: flex;
    gap: 0.5rem;
}

.nh-mode-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color, #e5e7eb);
    cursor: pointer;
    transition: all 0.2s;
}

.nh-mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color, #f59e0b);
}

.nh-mode-btn.active {
    background: var(--primary-color, #f59e0b);
    color: #1f2937;
    font-weight: bold;
}

.nh-pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nh-page-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color, #f59e0b);
    color: #1f2937;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.nh-page-btn:hover:not(:disabled) {
    background: #fbbf24;
    transform: scale(1.05);
}

.nh-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nh-page-info {
    font-size: 1rem;
    color: var(--text-secondary, #9ca3af);
    min-width: 80px;
    text-align: center;
}

.nh-loading {
    text-align: center;
    padding: 2rem;
}

.nh-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color, #f59e0b);
    border-radius: 50%;
    animation: nh-spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes nh-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   DETAIL VIEW
   ================================ */
.nh-detail-header {
    margin-bottom: 2rem;
}

.nh-back-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color, #e5e7eb);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.nh-back-btn:hover {
    background: var(--primary-color, #f59e0b);
    color: #1f2937;
    transform: translateX(-5px);
}

.nh-article {
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.nh-article-header h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: var(--text-color, #e5e7eb);
    line-height: 1.3;
}

.nh-article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nh-article-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.nh-article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.nh-article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color, #e5e7eb);
}

.nh-article-body p {
    margin-bottom: 1.25rem;
}

.nh-article-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary-color, #f59e0b);
}

.nh-article-body h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    color: #fbbf24;
}

.nh-article-body strong {
    color: var(--primary-color, #f59e0b);
}

.nh-article-body code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #fbbf24;
}

.nh-article-body blockquote {
    border-left: 4px solid var(--primary-color, #f59e0b);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary, #9ca3af);
}

.nh-article-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* Markdown Tables */
.nh-markdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nh-markdown-table thead {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.2));
    border-bottom: 2px solid rgba(245, 158, 11, 0.5);
}

.nh-markdown-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: bold;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.nh-markdown-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.nh-markdown-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.1);
}

.nh-markdown-table tbody tr:last-child {
    border-bottom: none;
}

.nh-markdown-table td {
    padding: 1rem 1.25rem;
    color: var(--text-color, #e5e7eb);
    font-size: 1rem;
    line-height: 1.6;
}

.nh-markdown-table td strong {
    color: var(--primary-color, #f59e0b);
    font-weight: 600;
}

.nh-markdown-table a {
    color: #fbbf24 !important;
    text-decoration: underline;
    transition: color 0.2s;
}

.nh-markdown-table a:hover {
    color: #fcd34d !important;
}


/* ================================
   CUSTOM BLOCKS (boss, phase, etc.)
   ================================ */
.nh-block {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    border-left: 5px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nh-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.nh-block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.nh-block-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 4px currentColor);
}

.nh-block-body {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.nh-block-boss {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.25), rgba(220, 38, 38, 0.15));
    border-left-color: #dc2626;
    border: 2px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3), inset 0 0 30px rgba(220, 38, 38, 0.05);
}

.nh-block-boss .nh-block-header {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.4), rgba(220, 38, 38, 0.25));
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

.nh-block-phase {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.15));
    border-left-color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3), inset 0 0 30px rgba(59, 130, 246, 0.05);
}

.nh-block-phase .nh-block-header {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.25));
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.nh-block-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.2));
    border-left-color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4), inset 0 0 30px rgba(239, 68, 68, 0.1);
    animation: nh-pulse-critical 2s ease-in-out infinite;
}

@keyframes nh-pulse-critical {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4), inset 0 0 30px rgba(239, 68, 68, 0.1);
    }

    50% {
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6), inset 0 0 40px rgba(239, 68, 68, 0.15);
    }
}

.nh-block-critical .nh-block-header {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.35));
    color: #fca5a5;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.nh-block-wipe {
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.25), rgba(124, 58, 237, 0.15));
    border-left-color: #7c3aed;
    border: 2px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3), inset 0 0 30px rgba(124, 58, 237, 0.05);
}

.nh-block-wipe .nh-block-header {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.4), rgba(124, 58, 237, 0.25));
    color: #a78bfa;
    text-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.nh-block-interrupt {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.25), rgba(234, 88, 12, 0.15));
    border-left-color: #ea580c;
    border: 2px solid rgba(234, 88, 12, 0.3);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3), inset 0 0 30px rgba(234, 88, 12, 0.05);
}

.nh-block-interrupt .nh-block-header {
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.4), rgba(234, 88, 12, 0.25));
    color: #fb923c;
    text-shadow: 0 0 8px rgba(234, 88, 12, 0.5);
}

.nh-block-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.15));
    border-left-color: #f59e0b;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3), inset 0 0 30px rgba(245, 158, 11, 0.05);
}

.nh-block-warning .nh-block-header {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.4), rgba(245, 158, 11, 0.25));
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.nh-block-tip {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.15));
    border-left-color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), inset 0 0 30px rgba(16, 185, 129, 0.05);
}

.nh-block-tip .nh-block-header {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0.25));
    color: #34d399;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.nh-block-timer {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.15));
    border-left-color: #6366f1;
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3), inset 0 0 30px rgba(99, 102, 241, 0.05);
}

.nh-block-timer .nh-block-header {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.4), rgba(99, 102, 241, 0.25));
    color: #818cf8;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.nh-block-position {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.15));
    border-left-color: #a855f7;
    border: 2px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3), inset 0 0 30px rgba(168, 85, 247, 0.05);
}

.nh-block-position .nh-block-header {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.4), rgba(168, 85, 247, 0.25));
    color: #c084fc;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* ================================
   CONTENT ELEMENTS
   ================================ */
.nh-content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.nh-youtube {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.nh-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nh-wowhead-link {
    color: #fbbf24 !important;
    text-decoration: underline;
    transition: color 0.2s;
}

.nh-wowhead-link:hover {
    color: var(--primary-color, #f59e0b) !important;
}

.nh-external-link {
    color: #60a5fa !important;
    text-decoration: underline;
    transition: color 0.2s;
}

.nh-external-link:hover {
    color: #93c5fd !important;
}

.nh-external-link::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.7;
}

/* ================================
   SHARE ACTIONS (Adblocker-safe!)
   ================================ */
.nh-actions {
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.nh-actions h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color, #e5e7eb);
}

.nh-action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nh-act-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 500;
}

.nh-act-fb {
    background: #1877f2;
    color: white;
}

.nh-act-fb:hover {
    background: #145dbf;
    transform: translateY(-2px);
}

.nh-act-tw {
    background: #1da1f2;
    color: white;
}

.nh-act-tw:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
}

.nh-act-lc {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color, #e5e7eb);
}

.nh-act-lc:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nh-copy-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #6ee7b7;
    font-weight: 500;
}

/* ================================
   SCROLL TO TOP BUTTON
   ================================ */
.nh-scroll-top-container {
    margin-top: 2rem;
    text-align: center;
}

.nh-scroll-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    color: #fbbf24;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.nh-scroll-top-btn svg {
    transition: transform 0.3s ease;
}

.nh-scroll-top-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.2));
    border-color: rgba(245, 158, 11, 0.6);
    color: #fcd34d;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.nh-scroll-top-btn:hover svg {
    transform: translateY(-3px);
}

.nh-scroll-top-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    #hirek-container {
        padding: 1rem;
    }

    .nh-header h1 {
        font-size: 2rem;
    }

    .nh-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .nh-grid {
        grid-template-columns: 1fr;
    }

    .nh-article-header h1 {
        font-size: 1.8rem;
    }

    .nh-action-buttons {
        flex-direction: column;
    }

    .nh-act-btn {
        width: 100%;
        justify-content: center;
    }

    .nh-scroll-top-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
    }
}