/*
Theme Name: Bazimeta
Theme URI: https://bazimeta.ir
Author: Bazimeta
Author URI: https://bazimeta.ir
Description: Minimal custom styles without external CSS frameworks.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bazimeta
*/

:root {
    --color-primary: #7200b4;
    --color-secondary: #1d3557;
    --button-primary-bg: var(--color-primary);
    --button-primary-text: #ffffff;
    --button-secondary-bg: #f2f2f2;
    --button-secondary-text: #111111;
    --border-color: #d7d7d7;
    --color-text: #1a1a1a;
    --color-muted: #6d6d6d;
    --color-surface: #ffffff;
    --color-background: #fafafa;
    --font-base: 'iransansxv', Tahoma, sans-serif;
    --font-heading: 'ModamFaNum', 'iransansxv', Tahoma, sans-serif;
    --spacing-2xs: 0.25rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --max-width: 1300px;
    --header-height: 88px;
    --admin-bar-height: 0px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0 0 var(--spacing-sm);
    line-height: 1.3;
}

p {
    margin: 0 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Layout */
.layout-container {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.page-stack {
    padding: var(--spacing-xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    /* margin-top: -100px; */
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.section-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.section-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: var(--color-text);
}

.section-cta {
    text-align: center;
}

.site-main {
    min-height: 100vh;
}

body.has-fixed-header .site-main {
    padding-top: calc(var(--header-height) + 24px);
}

body.admin-bar {
    --admin-bar-height: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --admin-bar-height: 46px;
    }
}

/* Header */
.site-header {
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.site-header.is-peeking {
    transform: translateY(-35%);
    opacity: 0.9;
}

.site-header.is-hidden {
    transform: translateY(-110%);
    opacity: 0;
}

.shell {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: var(--spacing-md);
}

.site-header__brand img {
    width: 140px;
    height: auto;
}

.site-header__toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: var(--spacing-xs);
    cursor: pointer;
    flex-direction: column;
    gap: var(--spacing-2xs);
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
}

.site-header__toggle:hover,
.site-header__toggle:focus {
    background: var(--color-primary);
    border-color: var(--color-primary);
    outline: none;
}

.site-header__toggle:hover span,
.site-header__toggle:focus span {
    background: #fff;
}

.site-header__toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    display: block;
    transition: background 0.2s ease;
}

.site-header__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.site-nav__list {
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
}

.site-nav__item {
    margin: 0;
}

.site-nav__link {
    color: var(--color-text);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
}

.site-nav__link:hover,
.site-nav__link:focus {
    color: var(--color-primary);
}

.site-nav__actions {
    display: flex;
    gap: var(--spacing-sm);
}

@media (max-width: 900px) {
    .site-header__toggle {
        display: flex;
    }

    .site-header__panel {
        position: absolute;
        top: calc(var(--header-height) + var(--admin-bar-height));
        right: 0;
        left: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        display: none;
    }

    .site-header__panel.is-active {
        display: flex;
    }

    .site-nav__list {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .site-nav__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Header Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.icon-button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--color-text);
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.icon-button:hover,
.icon-button:focus {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    outline: none;
}

.icon-button:active {
    transform: scale(0.95);
}

.icon-button i {
    width: 20px;
    height: 20px;
}

@media (max-width: 900px) {
    .site-header__actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: var(--spacing-sm);
    }
}

/* Buttons */
.btn,
.button {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--color-text);
    padding: 0.55rem 1.25rem;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xs);
    text-decoration: none;
}

.btn:hover,
.button:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary,
.button.is-primary {
    background: var(--button-primary-bg);
    border-color: var(--button-primary-bg);
    color: var(--button-primary-text);
}

.btn-secondary,
.button.is-secondary {
    background: var(--button-secondary-bg);
    border-color: var(--border-color);
    color: var(--button-secondary-text);
}

.btn-ghost {
    border: none;
    background: transparent;
    color: var(--color-text);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
}

.btn-small,
.button.is-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* Notices */
.notice {
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    background: var(--color-surface);
    color: var(--color-text);
}

.notice--info {
    border-color: #aac4ff;
    background: #f3f6ff;
}

.notice--warning {
    border-color: #f2c94c;
    background: #fff8e1;
}

.notice--danger {
    border-color: #f28b82;
    background: #fff2f0;
}

.notification {
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    background: var(--color-surface);
    color: var(--color-text);
}

.notification.is-info {
    border-color: #aac4ff;
    background: #f3f6ff;
}

.notification.is-warning {
    border-color: #f2c94c;
    background: #fff8e1;
}

.notification.is-danger {
    border-color: #f28b82;
    background: #fff2f0;
}

.notification.is-success {
    border-color: #1b8f5a;
    background: #e7f6ef;
}

/* Game grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: var(--spacing-lg);
}

.game-card {
    background: var(--color-surface);
    /* border: 1px solid var(--border-color); */
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.game-card__link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.game-card__media {
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.game-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 41%, rgb(0 0 0 / 81%) 100%);
}

.game-card__content {
    position: absolute;
    inset: auto 0 0;
    padding: var(--spacing-md);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-direction: row-reverse;
}

.game-card__body {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.game-card__title {
    color: #fff;
    margin: 0;
    font-size: 1.05rem;
}

.game-card__body .game-card__title {
    color: var(--color-text);
}

.score-badge {
    padding: var(--spacing-2xs) var(--spacing-xs);
    /* font-weight: 600; */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    padding-bottom: 0;
    border-radius: 4px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.score-badge--positive {
    background: #36b960;
}

.score-badge--neutral {
    background: #dd911f;
}

.score-badge--critical {
    background: #e63026;
}

.game-card__body .score-badge {
    background: transparent;
}

/* Carousel */
.games-carousel {
    width: 100%;
}

.carousel-slide {
    position: relative;
    display: block;
    min-height: 340px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.carousel-slide__media,
.carousel-slide__overlay {
    position: absolute;
    inset: 0;
}

.carousel-slide__media {
    background-size: cover;
    background-position: center;
}

.carousel-slide__overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.carousel-slide__content {
    position: absolute;
    inset: auto 0 0;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    color: #fff;
}

.carousel-slide__title {
    color: #fff;
    font-size: 2rem;
    margin: 0;
}

.carousel-slide__subtitle {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.85);
}

.games-carousel-thumbs {
    margin-top: var(--spacing-md);
}

.carousel-thumb {
    display: block;
    min-height: 80px;
    position: relative;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
}

.carousel-thumb__label {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0 var(--spacing-sm);
    text-align: center;
}

/* Blog cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.post-card {
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.post-card__media img {
    width: 100%;
    height: auto;
}

.post-card__body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.post-card__title {
    margin: 0;
    font-size: 1.1rem;
}

.post-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.meta-item {
    color: var(--color-muted);
}

/* Footer */
.site-footer {
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    background: var(--color-surface);
    padding: var(--spacing-lg) 0;
}

.site-footer__text {
    text-align: center;
    color: var(--color-muted);
    margin: 0;
}

/* Modal / Dialog */
.dialog {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.dialog.is-active {
    display: flex;
}

.dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.dialog__panel {
    position: relative;
    width: min(600px, 90%);
    max-height: 80vh;
    background: var(--color-surface);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.dialog__header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog__title {
    margin: 0;
    font-size: 1.1rem;
}

.dialog__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.dialog__body {
    padding: var(--spacing-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Forms */
.form-label,
.field-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: var(--spacing-2xs);
}

.form-field,
.field-control {
    position: relative;
}

.form-input,
.input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    background: var(--color-surface);
}

.form-input:focus,
.input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-icon,
.input-icon {
    position: absolute;
    inset: 0 auto 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
}

.field-control .form-input,
.field-control .input {
    padding-left: 2.5rem;
}

.search-results {
    min-height: 120px;
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.search-placeholder {
    text-align: center;
    color: var(--color-muted);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.search-section__title {
    font-size: 1rem;
    margin: 0;
    color: var(--color-text);
}

.search-result-item {
    border: 1px solid var(--border-color);
    padding: var(--spacing-sm);
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:hover {
    border-color: var(--color-primary);
}

.search-result-content {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
    width: 100%;
}

.search-result-content strong {
    font-weight: 600;
}

/* Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility classes */
.text-center,
.has-text-centered {
    text-align: center;
}

.text-muted,
.has-text-grey,
.has-text-grey-dark {
    color: var(--color-muted);
}

.text-positive,
.has-text-success {
    color: #1b8f5a;
}

.text-warning,
.has-text-warning {
    color: #c07a00;
}

.text-danger,
.has-text-danger {
    color: #c7372f;
}

.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mb-3 { margin-bottom: var(--spacing-sm); }
.mb-4 { margin-bottom: var(--spacing-md); }
.mb-5 { margin-bottom: var(--spacing-lg); }

.box {
    /* border: 1px solid var(--border-color); */
    padding: var(--spacing-md);
    background: var(--color-surface);
    margin-bottom: var(--spacing-md);
    border-radius: 16px;
}

.tag {
    border: 1px solid var(--border-color);
    padding: var(--spacing-2xs) var(--spacing-xs);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.column {
    flex: 1 1 250px;
}

.level {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
}

.subtitle {
    font-size: 1rem;
    color: var(--color-muted);
}

.modal {
    display: none;
}

.modal.is-active {
    display: block;
}

/* Rating slider tweaks (remove radii/shadows) */
.rating-radio-group {
    border-radius: 14px;
    overflow: hidden;
}

.rating-value-circle {
    border-radius: 120px;
}

.rating-radio-container {
    width: 100%;
}

.rating-radio-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.rating-radio-group {
    display: flex;
    width: 100%;
    height: 27px;
}

.rating-radio-item {
    position: relative;
    flex: 1;
    border-left: 3px solid #fff;
    cursor: pointer;
}

.rating-radio-item:last-child {
    border-left: none;
}

.rating-radio-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.rating-radio-segment {
    position: absolute;
    inset: 0;
    transition: background 0.2s ease;
}

/* Metacritic-style gradient: Red (1-4), Yellow (5-7), Green (8-10) */
.rating-radio-item:nth-child(1) .rating-radio-segment,
.rating-radio-item:nth-child(2) .rating-radio-segment,
.rating-radio-item:nth-child(3) .rating-radio-segment,
.rating-radio-item:nth-child(4) .rating-radio-segment {
    background: rgb(255 13 0 / 20%);
}

.rating-radio-item:nth-child(5) .rating-radio-segment,
.rating-radio-item:nth-child(6) .rating-radio-segment,
.rating-radio-item:nth-child(7) .rating-radio-segment {
    background: rgb(242 181 0 / 20%);
}

.rating-radio-item:nth-child(8) .rating-radio-segment,
.rating-radio-item:nth-child(9) .rating-radio-segment,
.rating-radio-item:nth-child(10) .rating-radio-segment {
    background: rgb(43 199 93 / 20%);
}

/* Hover states - stronger colors */
.rating-radio-item:nth-child(1):hover .rating-radio-segment,
.rating-radio-item:nth-child(2):hover .rating-radio-segment,
.rating-radio-item:nth-child(3):hover .rating-radio-segment,
.rating-radio-item:nth-child(4):hover .rating-radio-segment {
    background: rgb(255 13 0);
}

.rating-radio-item:nth-child(5):hover .rating-radio-segment,
.rating-radio-item:nth-child(6):hover .rating-radio-segment,
.rating-radio-item:nth-child(7):hover .rating-radio-segment {
    background: rgba(255, 193, 7, 0.5);
}

.rating-radio-item:nth-child(8):hover .rating-radio-segment,
.rating-radio-item:nth-child(9):hover .rating-radio-segment,
.rating-radio-item:nth-child(10):hover .rating-radio-segment {
    background: rgba(27, 143, 90, 0.4);
}

/* Filled states - when color class is present, use that color for all segments */
.rating-radio-segment.is-filled.is-danger {
    background: #ff4f45 !important;
}

.rating-radio-segment.is-filled.is-warning {
    background: #ffc107 !important;
}

.rating-radio-segment.is-filled.is-success {
    background: #2bc75d !important;
}

/* Hover preview state - when color class is present, use that color for all segments */
.rating-radio-segment.is-hover.is-danger {
    background: #ff4f45de !important;
}

.rating-radio-segment.is-hover.is-warning {
    background: #ffc107c2 !important;
}

.rating-radio-segment.is-hover.is-success {
    background: #2bc75dba !important;
}

/* Hover states for filled items - stronger colors based on color class */
.rating-radio-item:hover .rating-radio-segment.is-filled.is-danger {
    background: rgb(255 13 0) !important;
}

.rating-radio-item:hover .rating-radio-segment.is-filled.is-warning {
    background: rgb(255 191 0) !important;
}

.rating-radio-item:hover .rating-radio-segment.is-filled.is-success {
    background: #2bc75d !important;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.rating-value-circle {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 3rem;
    background: #e9e9e9;
    padding-top: 1px;
    font-family: 'ModamFaNum';
    color: #e9e9e9;
}

.rating-value-circle.is-success {
    background: #2bc75d;
    color: #fff;
    /* border-color: #1b8f5a; */
}

.rating-value-circle.is-warning {
    background: #ffc107;
    color: #fff;
}

.rating-value-circle.is-danger {
    background: #ff4f45;
    color: #fff;
    border-color: #c7372f;
}


.featured-game-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: var(--spacing-lg);
    margin-top: -80px;
    background: #ffffff1f;
    padding: 20px;
    z-index: 2;
    border-radius: 30px;
}


article.featured-game-hero a {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    display: flex;
}

.hero-section {
    background: #000;
}

span.featured-game-hero__image {
    position: relative;
    flex: 4;
}

span.featured-game-hero__image:before {
    content: '';
    display: block;
    background: linear-gradient(90deg, black, transparent,transparent, black);
    inset: 0;
    position: absolute;
}

span.featured-game-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
    flex: 2;
    padding-bottom: 50px;
}

span.featured-game-hero__content .score-badge {
    background: unset;
    font-size: 110px;
    font-weight: 900;
}

span.featured-game-hero__content .score-badge.score-badge--positive {
    color: #2bc75d;
}

div#add-my-score {
    position: sticky;
    top: 132px;
}

/* ==========================================================================
   Bazimeta Media Slider (Swiper.js)
   ========================================================================== */

.bazimeta-media-slider {
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.bazimeta-media-slider__viewport {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-background);
}

.bazimeta-media-slider__viewport.swiper {
    height: auto;
    max-height: 600px;
}

.bazimeta-media-slider__viewport .swiper-wrapper {
    display: flex;
    align-items: stretch;
    height: auto;
    max-height: 600px;
}

.bazimeta-media-slider__slide {
    position: relative;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    flex-shrink: 0;
}

.bazimeta-media-slider__slide.swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 600px !important;
}

.bazimeta-media-slider__slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

/* Thumbnail slider */
.bazimeta-media-slider__thumbs {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    max-height: 100px;
    overflow: hidden;
}

.bazimeta-media-slider__thumbs.swiper {
    max-height: 100px;
    overflow: hidden;
}

.bazimeta-media-slider__thumbs .swiper-wrapper {
    display: flex;
    align-items: center;
    max-height: 100px;
}

.bazimeta-media-slider__thumb {
    position: relative;
    width: 80px !important;
    min-width: 80px;
    max-width: 80px;
    height: 80px !important;
    min-height: 80px;
    max-height: 80px;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.bazimeta-media-slider__thumb.swiper-slide {
    width: 80px !important;
    max-width: 80px !important;
    height: 80px !important;
    max-height: 80px !important;
    flex-shrink: 0;
}

.bazimeta-media-slider__thumb:hover {
    opacity: 0.8;
    border-color: var(--color-primary);
}

.bazimeta-media-slider__thumb.is-active,
.bazimeta-media-slider__thumb.swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.bazimeta-media-slider__thumb img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Empty state */
.bazimeta-media-slider--empty {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
    padding: var(--spacing-xl);
}

/* Swiper navigation buttons */
.bazimeta-media-slider .swiper-button-next,
.bazimeta-media-slider .swiper-button-prev {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.bazimeta-media-slider .swiper-button-next:hover,
.bazimeta-media-slider .swiper-button-prev:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1);
}

.bazimeta-media-slider .swiper-button-next::after,
.bazimeta-media-slider .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Swiper pagination */
.bazimeta-media-slider .swiper-pagination {
    position: relative;
    margin-top: var(--spacing-sm);
    text-align: center;
}

.bazimeta-media-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.bazimeta-media-slider .swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
    transform: scale(1.2);
}

/* RTL Support */
html[dir="rtl"] .bazimeta-media-slider__thumb,
[dir="rtl"] .bazimeta-media-slider__thumb {
    direction: rtl;
}

html[dir="rtl"] .bazimeta-media-slider .swiper-button-next,
[dir="rtl"] .bazimeta-media-slider .swiper-button-next {
    left: 10px;
    right: auto;
}

html[dir="rtl"] .bazimeta-media-slider .swiper-button-prev,
[dir="rtl"] .bazimeta-media-slider .swiper-button-prev {
    right: 10px;
    left: auto;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .bazimeta-media-slider__viewport {
        max-height: 400px;
    }
    
    .bazimeta-media-slider__viewport.swiper {
        max-height: 400px;
    }
    
    .bazimeta-media-slider__viewport .swiper-wrapper {
        max-height: 400px;
    }
    
    .bazimeta-media-slider__slide {
        min-height: 200px;
        max-height: 400px;
    }
    
    .bazimeta-media-slider__slide.swiper-slide {
        max-height: 400px !important;
    }
    
    .bazimeta-media-slider__slide img {
        max-height: 400px;
    }
    
    .bazimeta-media-slider__thumbs {
        max-height: 70px;
    }
    
    .bazimeta-media-slider__thumbs.swiper {
        max-height: 70px;
    }
    
    .bazimeta-media-slider__thumbs .swiper-wrapper {
        max-height: 70px;
    }
    
    .bazimeta-media-slider__thumb {
        width: 60px !important;
        min-width: 60px;
        max-width: 60px;
        height: 60px !important;
        min-height: 60px;
        max-height: 60px;
    }
    
    .bazimeta-media-slider__thumb.swiper-slide {
        width: 60px !important;
        max-width: 60px !important;
        height: 60px !important;
        max-height: 60px !important;
    }
    
    .bazimeta-media-slider .swiper-button-next,
    .bazimeta-media-slider .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .bazimeta-media-slider .swiper-button-next::after,
    .bazimeta-media-slider .swiper-button-prev::after {
        font-size: 16px;
    }
}

div#add-my-score {
    position: sticky;
    top: 132px;
}

.head-myscore {
    display: flex;
    justify-content: space-between;
}


span.platform-icon.xbox-series-x {
    background-image: url('img/xbox-series-x.svg');
}

span.platform-icon.playstation5 {
    background-image: url('img/playstation-5.svg');

}
span.platform-icon.playstation4 {
    background-image: url('img/playstation-4.svg');

}

span.platform-icon.pc {
    background-image: url('img/pc.svg');
}

span.platform-icon {
    width: 40px;
    height: 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.platform-icons-single {
    display: flex;
    gap: 10px;
}

.column.is-8 {
    flex: 8;
}

.column.is-4 {
    flex: 4;
}

/* Ads Form Styles */
.ads-form-wrapper {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-lg);
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ads-form-step {
    margin-bottom: var(--spacing-xl);
}

.ads-form-step .field {
    margin-bottom: var(--spacing-md);
}

.ads-form-step .label {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.ads-form-step .control {
    margin-bottom: var(--spacing-sm);
}

.ads-form-step .radio,
.ads-form-step .checkbox {
    display: block;
    margin-bottom: var(--spacing-xs);
    cursor: pointer;
}

.ads-form-step .radio input[type="radio"],
.ads-form-step .checkbox input[type="checkbox"] {
    margin-left: var(--spacing-xs);
    cursor: pointer;
}

.ads-form-step .input,
.ads-form-step .textarea,
.ads-form-step .select2 {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-base);
    font-size: 16px;
}

.ads-form-step .input:focus,
.ads-form-step .textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(114, 0, 180, 0.1);
}

.ads-form-step .input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.ads-form-step .textarea {
    resize: vertical;
    min-height: 100px;
}

.ads-form-step .button {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: 4px;
    font-family: var(--font-base);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: var(--spacing-sm);
}

.ads-form-step .button.is-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.ads-form-step .button.is-primary:hover {
    background-color: #5a0090;
}

.ads-form-step .button.is-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
}

.ads-form-step .button.is-secondary:hover {
    background-color: #e0e0e0;
}

.ads-form-step .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Progress Indicator */
.ads-form-progress {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.ads-form-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.ads-form-progress-fill {
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.ads-form-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.ads-form-progress-step {
    flex: 1;
    text-align: center;
    padding: var(--spacing-xs);
    color: var(--color-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.ads-form-progress-step.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Select2 Customization */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-right: var(--spacing-sm);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: var(--spacing-xs);
}

.select2-dropdown {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.select2-results__option--highlighted {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Notification Styles */
.notification {
    padding: var(--spacing-md);
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
}

.notification.is-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.is-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification.is-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive */
@media (max-width: 768px) {
    .ads-form-wrapper {
        padding: var(--spacing-md);
        margin: var(--spacing-md) auto;
    }
    
    .ads-form-step .button {
        width: 100%;
        margin-bottom: var(--spacing-sm);
        margin-left: 0;
    }
    
    .ads-form-progress-steps {
        flex-direction: column;
    }
}

/* Ads Archive Styles */
.ads-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ads-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ads-card .image {
    margin-bottom: var(--spacing-md);
}

.ads-card .image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.ads-card .title {
    margin-bottom: var(--spacing-sm);
}

.ads-card .title a {
    color: var(--color-text);
    text-decoration: none;
}

.ads-card .title a:hover {
    color: var(--color-primary);
}

.ads-card .content {
    flex-grow: 1;
}

.ads-card .level {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* Ads Filter Styles */
#ads-filters {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-md));
}

.filter-section {
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section .title {
    color: var(--color-text);
    font-weight: 600;
}

.filter-section .control {
    margin-bottom: var(--spacing-xs);
}

.filter-section .radio {
    display: block;
    padding: var(--spacing-xs) 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-section .radio:hover {
    color: var(--color-primary);
}

.filter-section .radio input[type="radio"] {
    margin-left: var(--spacing-xs);
    cursor: pointer;
}

.filter-section .radio input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--color-primary);
}

#ads-loading {
    padding: var(--spacing-xl);
}

#ads-container {
    transition: opacity 0.3s ease;
}

/* Responsive Ads Archive */
@media (max-width: 768px) {
    #ads-filters {
        position: static;
        margin-bottom: var(--spacing-lg);
    }
    
    .ads-card {
        margin-bottom: var(--spacing-md);
    }
}