/**
 * Shadcn UI Component Styles (CSS-only implementation)
 * Replicates shadcn/ui design system for WordPress theme
 */

/* ==========================================================================
   BADGE COMPONENT
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius);
    transition: all 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Badge Variants */
.badge-default,
.badge {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.badge-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.badge-outline {
    border: 1px solid hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
}

.badge-destructive {
    background-color: hsl(0 84% 60%);
    color: white;
}

/* ==========================================================================
   BUTTON COMPONENT
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Variants */
.btn-default,
.btn--primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.btn-default:hover,
.btn--primary:hover {
    background-color: hsl(var(--gaming-red-hover));
    color: hsl(var(--primary-foreground));
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(220 14% 90%);
    color: hsl(var(--secondary-foreground));
}

.btn-outline {
    background-color: transparent;
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.btn-ghost,
.btn--ghost {
    background-color: transparent;
    border-color: transparent;
    color: hsl(var(--muted-foreground));
}

.btn-ghost:hover,
.btn--ghost:hover {
    background-color: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.btn-destructive {
    background-color: hsl(0 84% 60%);
    color: white;
}

.btn-destructive:hover {
    background-color: hsl(0 84% 50%);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.625rem;
    width: 2.5rem;
    height: 2.5rem;
}

.btn-icon-sm {
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
}

/* ==========================================================================
   INPUT COMPONENT
   ========================================================================== */

.input {
    display: flex;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 1px hsl(var(--ring));
}

.input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   CARD EFFECTS
   ========================================================================== */

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   SCORE BADGE
   ========================================================================== */

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.125rem;
}

/* ==========================================================================
   KEY TAKEAWAY COMPONENT
   ========================================================================== */

.key-takeaway {
    background-color: hsl(var(--accent));
    border-left: 4px solid hsl(var(--primary));
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.key-takeaway h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--accent-foreground));
    margin-bottom: 1rem;
}

.key-takeaway ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-takeaway li {
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: hsl(var(--primary));
}

.breadcrumbs-separator {
    color: hsl(var(--muted-foreground));
    opacity: 0.5;
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */

.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: hsl(var(--secondary));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.author-box__avatar {
    flex-shrink: 0;
}

.author-box__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box__info {
    flex: 1;
}

.author-box__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: hsl(var(--foreground));
}

.author-box__role {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.author-box__bio {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.author-box__social {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-buttons__label {
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: transparent;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-button:hover:not(.pagination-button-disabled) {
    background-color: hsl(var(--secondary));
}

.pagination-button-active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.pagination-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   VIEW MODE TOGGLE
   ========================================================================== */

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

.view-toggle__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle__button:hover {
    background-color: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.view-toggle__button-active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Mobile First: Base styles above are mobile-optimized */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .badge {
        font-size: 0.8125rem;
        padding: 0.3rem 0.75rem;
    }

    .btn {
        font-size: 0.9375rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .author-box {
        flex-direction: row;
        align-items: flex-start;
    }

    .author-box__avatar img {
        width: 100px;
        height: 100px;
    }

    .breadcrumbs {
        font-size: 0.9375rem;
    }

    .key-takeaway {
        padding: 2rem;
    }

    .key-takeaway h4 {
        font-size: 1.125rem;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .author-box__name {
        font-size: 1.5rem;
    }

    .score-badge {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
}

/* Mobile-specific overrides (max-width) */
@media (max-width: 767px) {
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .author-box__avatar {
        margin-bottom: 1rem;
    }

    .author-box__social {
        justify-content: center;
    }

    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .share-buttons__label {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-button {
        min-width: 2rem;
        padding: 0 0.5rem;
        font-size: 0.8125rem;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .breadcrumbs {
        font-size: 0.8125rem;
    }

    .key-takeaway {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

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

    .btn-icon {
        width: 2.5rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .badge {
        font-size: 0.6875rem;
        padding: 0.2rem 0.5rem;
    }

    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .input {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}

/* ==========================================================================
   ARCHIVE LAYOUT (search, all-content, shared)
   ========================================================================== */

.archive-hero--full {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
    width: 100% !important;
    max-width: 100% !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.archive-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

.archive-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.archive-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.archive-breadcrumb__current {
    color: var(--foreground);
    font-weight: 600;
}

.archive-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.archive-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    max-width: 800px;
    margin: 0;
}

.search-form-box {
    margin-top: 1.5rem;
    max-width: 560px;
}

.search-form-box__form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-form-box__input {
    flex: 1;
    min-width: 200px;
}

.archive-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.archive-layout__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.archive-sidebar--order {
    grid-column: 1;
    order: 2;
}

.archive-main--order {
    grid-column: 1;
    order: 1;
}

.archive-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.archive-widget__title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gaming-red);
    text-transform: uppercase;
}

.explore-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.explore-links li {
    margin-bottom: 0.5rem;
}

.explore-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.explore-links a:hover {
    color: var(--gaming-red);
}

.explore-links--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.archive-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.archive-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.archive-empty p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.archive-pagination-wrap {
    margin-top: 2rem;
}

.archive-pagination a,
.archive-pagination span,
.pagination a,
.pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--foreground);
    font-weight: 600;
    transition: all 0.2s;
}

.archive-pagination a:hover,
.pagination a:hover,
.archive-pagination .current,
.pagination .current {
    background: var(--gaming-red);
    color: white;
    border-color: var(--gaming-red);
}

.archive-card:hover .archive-card-thumb img {
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .archive-layout__grid {
        grid-template-columns: 30% 70% !important;
    }

    .archive-sidebar--order {
        order: 1 !important;
        grid-column: 1 !important;
    }

    .archive-main--order {
        order: 2 !important;
        grid-column: 2 !important;
    }
}

@media (max-width: 768px) {
    .archive-card {
        flex-direction: column !important;
    }

    .archive-card-thumb {
        width: 100% !important;
    }
}

/* ==========================================================================
   HOMEPAGE (front-page.php)
   ========================================================================== */

.home-category-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 60px;
    z-index: 40;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.home-category-nav__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.home-category-nav__list {
    display: flex;
    gap: 0;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.home-category-nav__link {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--foreground);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    display: inline-block;
}

.home-category-nav__link:hover,
.home-category-nav__link:focus {
    border-bottom-color: var(--gaming-red);
    color: var(--gaming-red);
}

.home-category-nav__scroll::-webkit-scrollbar {
    height: 3px;
}

.home-category-nav__scroll::-webkit-scrollbar-thumb {
    background: var(--gaming-red);
    border-radius: 10px;
}

.home-sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.home-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.home-section--muted {
    background: var(--muted);
}

.home-section--gradient {
    background: linear-gradient(to bottom, transparent 0%, var(--muted) 10%, var(--muted) 90%, transparent 100%);
}

.home-section--bottom {
    padding-bottom: 3rem;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--gaming-red);
    display: inline-block;
    margin: 0;
}

.home-section-title--solo {
    margin-bottom: 1rem;
}

.home-section-title--creators {
    margin-bottom: 1.5rem;
}

.home-section-more {
    color: var(--gaming-red);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.home-section-more:hover {
    text-decoration: underline;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.home-hero-large {
    grid-column: 1;
    grid-row: 1 / 3;
}

.home-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.home-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-card--featured {
    position: relative;
    min-height: 450px;
    cursor: pointer;
}

.home-card__link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-card__media {
    position: absolute;
    inset: 0;
}

.home-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.home-card:hover .home-card__media img {
    transform: scale(1.05);
}

.home-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.home-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gaming-red) 0%, #1e293b 100%);
}

.home-placeholder--muted {
    background: linear-gradient(135deg, var(--gaming-red) 0%, #64748b 100%);
}

.home-badge {
    background: var(--gaming-red);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.home-badge--on-image {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.home-badge--sm {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    border-radius: 3px;
}

.home-badge--card {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.home-card__content-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.home-card__title-lg {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.home-card__excerpt-light {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.home-card__meta-light {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

.home-card--compact .home-card__row {
    display: flex;
    gap: 1rem;
}

.home-card__thumb-sm {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    overflow: hidden;
    position: relative;
}

.home-card__thumb-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.home-card__body-sm {
    flex: 1;
    padding: 0.75rem 0.75rem 0.75rem 0;
    min-width: 0;
}

.home-card__title-sm {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.home-card__title-sm--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-card__title-sm--clamp a {
    display: block;
}

.home-card__title-sm a,
.home-card__title a {
    color: var(--foreground);
    text-decoration: none;
}

.home-card__title-sm a:hover,
.home-card__title a:hover {
    color: var(--gaming-red);
}

.home-card__meta-sm {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.home-card__thumb-wrap {
    display: block;
    position: relative;
}

.home-card__ratio {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-card__ratio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.home-badge--grid {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
}

.home-card__body {
    padding: 1rem;
}

.home-card__title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.home-card__excerpt {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.home-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.home-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.home-list-item {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    transition: box-shadow 0.3s;
}

.home-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-list-item__thumb {
    flex-shrink: 0;
    width: 180px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.home-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-list-item__body {
    flex: 1;
    min-width: 0;
}

.home-event-card {
    display: flex;
    flex-direction: column;
}

.home-event-card .home-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.home-event-meta__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-event-meta__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.home-event-organizer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.home-event-organizer__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.home-event-organizer__link:hover {
    opacity: 0.7;
}

.home-event-organizer__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 4px;
}

.home-event-organizer__label {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    margin-bottom: 2px;
}

.home-event-organizer__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.home-creator-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-creator-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.home-creator-card__link:hover {
    transform: translateY(-5px);
}

.home-creator-card__avatar {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
}

.home-creator-card__avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-creator-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gaming-red) 0%, #64748b 100%);
    border-radius: 50%;
}

.home-creator-card__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.3;
    max-width: 120px;
    word-wrap: break-word;
}

@media (min-width: 1024px) {
    .home-hero-grid {
        grid-template-columns: 2fr 1fr;
    }

    .home-hero-large {
        grid-column: 1;
        grid-row: 1 / 5;
    }
}

/* ==========================================================================
   FOOTER PARTNER LOGOS (footer-bottom — classic + block widgets)
   ========================================================================== */

.footer-partners-grid {
    --footer-partner-logo-h: 56px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: center !important;
    gap: 2rem 3rem !important;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    min-height: var(--footer-partner-logo-h);
}

/* Direct children: max 4 per row, vertically centered as a row */
.footer-partners-grid > * {
    flex: 0 1 calc(25% - 2.25rem) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    min-height: var(--footer-partner-logo-h);
}

.footer-partners-grid > .widget,
.footer-partners-grid > [id^="block-"] {
    flex: 0 1 calc(25% - 2.25rem) !important;
}

/* "Our Partners" text / heading blocks */
.footer-partners-grid .wp-block-heading,
.footer-partners-grid .wp-block-paragraph,
.footer-partners-grid .widget_text,
.footer-partners-grid p,
.footer-partners-grid h1,
.footer-partners-grid h2,
.footer-partners-grid h3,
.footer-partners-grid h4 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    align-self: center !important;
}

/* Gutenberg Image block overrides (size-full forces width:100%) */
.footer-partners-grid .widget_block,
.footer-partners-grid .widget_media_image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: var(--footer-partner-logo-h);
}

.footer-partners-grid .wp-block-image,
.footer-partners-grid figure.wp-block-image {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-partners-grid figure {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: var(--footer-partner-logo-h);
}

.footer-partners-grid img {
    display: block !important;
    width: auto !important;
    max-width: 200px !important;
    height: auto !important;
    max-height: var(--footer-partner-logo-h) !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    vertical-align: middle !important;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-partners-grid .wp-block-image.size-full img,
.footer-partners-grid .size-full img {
    width: auto !important;
    max-width: 200px !important;
    height: auto !important;
}

.footer-partners-grid a:hover img {
    opacity: 1;
}

.footer-partners-grid .wp-caption {
    max-width: 100% !important;
    width: auto !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: none !important;
}

.footer-partners-grid .wp-caption-text {
    display: none !important;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {

    .footer-partners-grid > * {
        flex: 0 1 calc(50% - 1.5rem) !important;
        max-width: 200px !important;
    }
}

@media (max-width: 480px) {

    .footer-partners-grid {
        --footer-partner-logo-h: 44px;
        gap: 1.25rem 1.5rem !important;
    }

    .footer-partners-grid > * {
        flex: 0 1 calc(50% - 0.75rem) !important;
        max-width: 160px !important;
    }

    .footer-partners-grid img {
        max-width: 160px !important;
    }
}

@media (max-width: 768px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-card--featured {
        min-height: 350px;
    }

    .home-category-nav__link {
        font-size: 0.8125rem;
        padding: 0.875rem 1rem;
    }

    .home-list-item {
        flex-direction: column;
    }

    .home-list-item__thumb {
        width: 100%;
    }
}