/**
 * Hírek Rendszer CSS
 * Prefix: mt- (news-mythic-tactics)
 */

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

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

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

.mt-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);
}

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

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

.mt-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;
}

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

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

.mt-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);
}

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

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

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

@keyframes mt-shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

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

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

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

.mt-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;
}

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

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

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

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

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

.mt-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;
}

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

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

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

.mt-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;
}

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

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

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

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

.mt-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: mt-spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

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

.mt-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;
}

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

.mt-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;
}

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

.mt-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);
}

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

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

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

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

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

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

.mt-article-body strong {
    color: #c89050;
}

.mt-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;
}

.mt-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);
}

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

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

.mt-table thead {
    background: rgba(150, 110, 40, 0.2);
}

.mt-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: bold;
    color: #d0b880;
    border-bottom: 2px solid rgba(150, 110, 40, 0.3);
}

.mt-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

.mt-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mt-table tbody tr:last-child td {
    border-bottom: none;
}

/* ================================
   CUSTOM BLOCKS (boss, phase, etc.)
   ================================ */
.mt-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;
}

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

.mt-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);
}

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

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

.mt-block-boss {
    background: linear-gradient(135deg, rgba(100, 30, 30, 0.15), rgba(150, 50, 50, 0.1));
    border-left-color: #a04040;
    border: 2px solid rgba(150, 50, 50, 0.2);
    box-shadow: 0 4px 12px rgba(150, 50, 50, 0.2), inset 0 0 30px rgba(150, 50, 50, 0.03);
}

.mt-block-boss .mt-block-header {
    background: linear-gradient(90deg, rgba(150, 50, 50, 0.25), rgba(150, 50, 50, 0.15));
    color: #d89090;
    text-shadow: 0 0 6px rgba(150, 50, 50, 0.3);
}

.mt-block-phase {
    background: linear-gradient(135deg, rgba(50, 90, 150, 0.15), rgba(50, 90, 150, 0.1));
    border-left-color: #5080c0;
    border: 2px solid rgba(50, 90, 150, 0.2);
    box-shadow: 0 4px 12px rgba(50, 90, 150, 0.2), inset 0 0 30px rgba(50, 90, 150, 0.03);
}

.mt-block-phase .mt-block-header {
    background: linear-gradient(90deg, rgba(50, 90, 150, 0.25), rgba(50, 90, 150, 0.15));
    color: #8db0d8;
    text-shadow: 0 0 6px rgba(50, 90, 150, 0.3);
}

.mt-block-critical {
    background: linear-gradient(135deg, rgba(150, 60, 60, 0.2), rgba(150, 60, 60, 0.12));
    border-left-color: #b05050;
    border: 2px solid rgba(150, 60, 60, 0.25);
    box-shadow: 0 4px 12px rgba(150, 60, 60, 0.25), inset 0 0 30px rgba(150, 60, 60, 0.06);
    animation: mt-pulse-critical 2s ease-in-out infinite;
}

@keyframes mt-pulse-critical {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(150, 60, 60, 0.25), inset 0 0 30px rgba(150, 60, 60, 0.06);
    }

    50% {
        box-shadow: 0 4px 16px rgba(150, 60, 60, 0.35), inset 0 0 40px rgba(150, 60, 60, 0.09);
    }
}

.mt-block-critical .mt-block-header {
    background: linear-gradient(90deg, rgba(150, 60, 60, 0.3), rgba(150, 60, 60, 0.2));
    color: #d8a0a0;
    text-shadow: 0 0 7px rgba(150, 60, 60, 0.4);
}

.mt-block-wipe {
    background: linear-gradient(135deg, rgba(90, 50, 120, 0.15), rgba(100, 60, 140, 0.1));
    border-left-color: #705090;
    border: 2px solid rgba(100, 60, 140, 0.2);
    box-shadow: 0 4px 12px rgba(100, 60, 140, 0.2), inset 0 0 30px rgba(100, 60, 140, 0.03);
}

.mt-block-wipe .mt-block-header {
    background: linear-gradient(90deg, rgba(100, 60, 140, 0.25), rgba(100, 60, 140, 0.15));
    color: #b090c8;
    text-shadow: 0 0 6px rgba(100, 60, 140, 0.3);
}

.mt-block-interrupt {
    background: linear-gradient(135deg, rgba(150, 80, 40, 0.15), rgba(150, 80, 40, 0.1));
    border-left-color: #a06040;
    border: 2px solid rgba(150, 80, 40, 0.2);
    box-shadow: 0 4px 12px rgba(150, 80, 40, 0.2), inset 0 0 30px rgba(150, 80, 40, 0.03);
}

.mt-block-interrupt .mt-block-header {
    background: linear-gradient(90deg, rgba(150, 80, 40, 0.25), rgba(150, 80, 40, 0.15));
    color: #d0a080;
    text-shadow: 0 0 6px rgba(150, 80, 40, 0.3);
}

.mt-block-warning {
    background: linear-gradient(135deg, rgba(150, 110, 40, 0.15), rgba(150, 110, 40, 0.1));
    border-left-color: #a08040;
    border: 2px solid rgba(150, 110, 40, 0.2);
    box-shadow: 0 4px 12px rgba(150, 110, 40, 0.2), inset 0 0 30px rgba(150, 110, 40, 0.03);
}

.mt-block-warning .mt-block-header {
    background: linear-gradient(90deg, rgba(150, 110, 40, 0.25), rgba(150, 110, 40, 0.15));
    color: #d0b880;
    text-shadow: 0 0 6px rgba(150, 110, 40, 0.3);
}

.mt-block-tip {
    background: linear-gradient(135deg, rgba(30, 120, 90, 0.15), rgba(30, 120, 90, 0.1));
    border-left-color: #408070;
    border: 2px solid rgba(30, 120, 90, 0.2);
    box-shadow: 0 4px 12px rgba(30, 120, 90, 0.2), inset 0 0 30px rgba(30, 120, 90, 0.03);
}

.mt-block-tip .mt-block-header {
    background: linear-gradient(90deg, rgba(30, 120, 90, 0.25), rgba(30, 120, 90, 0.15));
    color: #80c0a8;
    text-shadow: 0 0 6px rgba(30, 120, 90, 0.3);
}

.mt-block-timer {
    background: linear-gradient(135deg, rgba(70, 75, 140, 0.15), rgba(70, 75, 140, 0.1));
    border-left-color: #6070b0;
    border: 2px solid rgba(70, 75, 140, 0.2);
    box-shadow: 0 4px 12px rgba(70, 75, 140, 0.2), inset 0 0 30px rgba(70, 75, 140, 0.03);
}

.mt-block-timer .mt-block-header {
    background: linear-gradient(90deg, rgba(70, 75, 140, 0.25), rgba(70, 75, 140, 0.15));
    color: #9098c8;
    text-shadow: 0 0 6px rgba(70, 75, 140, 0.3);
}

.mt-block-position {
    background: linear-gradient(135deg, rgba(120, 70, 150, 0.15), rgba(120, 70, 150, 0.1));
    border-left-color: #8060a0;
    border: 2px solid rgba(120, 70, 150, 0.2);
    box-shadow: 0 4px 12px rgba(120, 70, 150, 0.2), inset 0 0 30px rgba(120, 70, 150, 0.03);
}

.mt-block-position .mt-block-header {
    background: linear-gradient(90deg, rgba(120, 70, 150, 0.25), rgba(120, 70, 150, 0.15));
    color: #b090c8;
    text-shadow: 0 0 6px rgba(120, 70, 150, 0.3);
}

/* ================================
   CONTENT ELEMENTS
   ================================ */
.mt-content-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mt-content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

/* Mobil: teljes szélesség, arányok megtartása */
@media (max-width: 800px) {
    .mt-content-image {
        max-width: 100%;
        min-width: unset;
        margin: 1rem auto;
    }
}

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

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

.mt-twitch {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

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

/* Video Player */
.mt-video-container {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.mt-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
}

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

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

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

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

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

/* ================================
   SHARE ACTIONS (Adblocker-safe!)
   ================================ */
.mt-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;
}

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

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

.mt-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;
}

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

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

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

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

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

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

.mt-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
   ================================ */
.mt-scroll-top-container {
    margin-top: 2rem;
    text-align: center;
}

.mt-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);
}

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

.mt-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);
}

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

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

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

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

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

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

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

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

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

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