/*
Theme Name: Optimus
Theme URI: http://localhost/
Author: Optimus Gaming
Description: Un thème moderne pour l'actualité gaming, les tests et la communauté.
Version: 1.2.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: optimus
*/

:root {
    --bg-dark: #0c0c0c;
    --card-bg: #121212;
    --primary-yellow: #facc15;
    --primary-blue: #135bec;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #1a1a1a;
    --radius: 8px;
    /* Theme transition */
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

    /* Skeleton Loader Variables */
    --skeleton-bg: #1a1a1a;
    --skeleton-shimmer: #242424;
    --header-bg: #000000;
}

html.light-mode {
    --bg-dark: #f0f2f5;
    --card-bg: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --header-bg: #ffffff;
    --skeleton-bg: #e0e0e0;
    --skeleton-shimmer: #f0f0f0;
}

/* =====================
   SKELETON LOADERS
   ===================== */
.skeleton-loader {
    position: relative;
    overflow: hidden;
    background-color: var(--skeleton-bg);
    border-radius: var(--radius);
    display: block;
    width: 100%;
    height: 100%;
    min-height: 50px;
}

.skeleton-loader::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-loader img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.skeleton-loader.loaded {
    background-image: none !important;
    background-color: transparent !important;
}

.skeleton-loader.loaded::after {
    display: none !important;
    animation: none !important;
    visibility: hidden !important;
}

.skeleton-loader.loaded img {
    opacity: 1;
}

/* Smoother transitions */
html, body {
    transition: var(--theme-transition);
}

body {
    transition: var(--theme-transition);
}

/* Light mode specific overrides for elements with hardcoded dark colors */
html.light-mode .site-header {
    background: #ffffff;
    border-bottom-color: #e0e0e0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

html.light-mode .search-overlay {
    background: rgba(255, 255, 255, 0.98);
}

html.light-mode .login-overlay {
    background: rgba(0, 0, 0, 0.75);
}

html.light-mode .search-toggle {
    color: #333;
}

html.light-mode .search-toggle:hover {
    color: #111;
}

html.light-mode .main-menu a {
    color: #333 !important;
}

html.light-mode .main-menu a:hover {
    color: var(--primary-yellow) !important;
}

html.light-mode .hero-slide,
html.light-mode .hero-card {
    background-color: #e0e0e0;
}

/* WooCommerce light mode */
html.light-mode .woocommerce-page,
html.light-mode .woocommerce {
    color: var(--text-main);
}

/* bbPress light mode */
html.light-mode #bbpress-forums {
    background: transparent;
    color: var(--text-main);
}

html.light-mode #bbpress-forums .bbp-forum-title a,
html.light-mode #bbpress-forums .bbp-topic-title a,
html.light-mode #bbpress-forums .bbp-reply-content {
    color: var(--text-main);
}

html.light-mode .news-entry {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
}

html.light-mode .news-entry:hover {
    background: #f8f9fa !important;
}

/* Comments System Light Mode */
html.light-mode #comments {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

html.light-mode #comments h3 {
    color: var(--text-main);
}

html.light-mode .comments-header .js-comment-count {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
}

html.light-mode .comments-header .text-gray-400 {
    color: var(--text-muted);
}

html.light-mode .comments-header .text-gray-400:hover {
    color: var(--text-main);
}

/* Comment List */
html.light-mode .comment-bubble {
    background: #f0f2f5 !important;
    border-color: var(--border-color) !important;
}

html.light-mode .comment-bubble:hover {
    background: #e4e6e9 !important;
}

html.light-mode .comment-author {
    color: var(--text-main) !important;
}

html.light-mode .comment-text {
    color: var(--text-main) !important;
}

html.light-mode .comment-actions {
    color: var(--text-muted) !important;
}

html.light-mode .comment-actions .js-comment-like:hover {
    color: var(--text-main);
}

html.light-mode #js-load-more-comments {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-main);
}

html.light-mode #js-load-more-comments:hover {
    background: #f0f2f5;
}

html.light-mode .no-comments-yet {
    border-color: var(--border-color) !important;
}

html.light-mode .no-comments-yet .bg-white\/5 {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Comment Form & Login CTA */
html.light-mode .comment-login-cta {
    background: var(--card-bg);
    border-color: var(--border-color);
}

html.light-mode .comment-login-cta h4 {
    color: var(--text-main);
}

html.light-mode .comment-login-cta p {
    color: var(--text-muted);
}

html.light-mode .comment-login-cta .w-16.bg-white\/5 {
    background: rgba(0, 0, 0, 0.05);
}

html.light-mode .social-login-btn {
    border-color: var(--border-color) !important;
    color: var(--text-main);
}

html.light-mode .social-login-btn:not(.discord) {
    background: #f0f2f5 !important;
}

html.light-mode .social-login-btn.discord {
    color: #fff;
    border-color: #5865F2 !important;
    background: #5865F2 !important;
}

html.light-mode .social-login-btn:not(.discord):hover {
    background: #e4e6e9 !important;
}

html.light-mode .text-gray-600 {
    color: var(--text-muted);
}

html.light-mode .underline-offset-4 {
    color: var(--text-main);
}

html.light-mode #js-comment-form-wrapper .bg-\[\#3a3b3c\] {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

html.light-mode .js-fb-textarea {
    color: var(--text-main) !important;
}

html.light-mode .js-fb-textarea::placeholder {
    color: var(--text-muted);
}

html.light-mode .js-emoji-trigger {
    color: var(--text-muted) !important;
}

html.light-mode .js-gif-trigger {
    border-color: #ccc;
    color: var(--text-muted) !important;
}

html.light-mode .js-emoji-trigger:hover,
html.light-mode .js-gif-trigger:hover {
    color: var(--text-main) !important;
    background: rgba(0, 0, 0, 0.05);
}

/* Dropdowns (Emojis, GIFs, Menus) */
html.light-mode #js-emoji-picker,
html.light-mode #js-gif-picker,
html.light-mode .js-comment-dropdown {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

html.light-mode #js-gif-search {
    background-color: #f0f2f5 !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
}

html.light-mode #js-gif-search::placeholder {
    color: var(--text-muted);
}

html.light-mode .js-comment-dropdown a {
    color: var(--text-main) !important;
}

html.light-mode .js-comment-dropdown a:hover {
    background-color: #f0f2f5 !important;
    color: var(--text-main) !important;
}

html.light-mode .js-comment-menu-btn {
    color: var(--text-muted) !important;
}

html.light-mode .js-comment-menu-btn:hover {
    background-color: #f0f2f5 !important;
    color: var(--text-main) !important;
}

html.light-mode .fa-flag {
    color: #ef4444;
}

/* Reactions */
html.light-mode .comment-reactions-display {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html.light-mode .js-total-count {
    color: var(--text-main) !important;
}

html.light-mode .js-reaction-tooltip {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

html.light-mode .js-reaction-tooltip .text-white\/90 {
    color: var(--text-main) !important;
}

html.light-mode .js-reaction-tooltip .border-b-\[\#1c1d1e\]\/95 {
    border-bottom-color: var(--card-bg) !important;
}

/* Dark mode toggle button */
.theme-toggle {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Header transition tweak */
.site-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.theme-toggle:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: rotate(20deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dark mode default: show moon */
.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light mode: show sun */
html.light-mode .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

html.light-mode .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Spline Sans', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--header-bg) !important;
}

/* Force white in light mode scrolled state with high specificity */
html.light-mode .site-header.scrolled,
html.light-mode body .site-header.scrolled,
html.light-mode header.site-header.scrolled {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom-color: rgba(0,0,0,0.05) !important;
}

html:not(.light-mode) .site-header.scrolled {
    background: rgba(12, 12, 12, 0.95) !important;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    /* slightly tighter gap */
}

.header-right {
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Custom Logo */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo-link img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* brand link fallback */
.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* login toggle button */
.login-toggle,
.user-profile-toggle {
    background: var(--primary-yellow);
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.login-toggle:hover,
.user-profile-toggle:hover {
    background: #fff;
    transform: translateY(-2px);
}

.user-profile-toggle {
    padding: 4px 12px 4px 4px;
    /* Less padding because of avatar */
}

.user-profile-toggle img {
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.user-profile-toggle i {
    font-size: 10px;
    margin-left: 5px;
}

/* User Dropdown Menu */
.user-profile-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 200px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-profile-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-yellow);
}

.user-dropdown-menu i {
    width: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.logout-link {
    color: #ef4444 !important;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.login-toggle i {
    font-size: 18px;
}

/* Interactive Search Toggle & Overlay */
.search-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: var(--primary-yellow);
}

/* Login Modal Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: var(--card-bg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-overlay.active .login-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-yellow);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.login-header h2 span {
    color: var(--primary-yellow);
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.social-btn.discord {
    background: #5865F2;
    border-color: #5865F2;
}

.social-btn.discord:hover {
    background: #4752C4;
}

.social-btn i {
    font-size: 18px;
}

.form-actions-extended {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-me input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.remember-me span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.login-message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: none;
}

.login-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 700;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.search-close:hover {
    color: var(--primary-yellow);
    transform: rotate(90deg);
}

.search-overlay-content {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-form-overlay {
    position: relative;
    width: 100%;
}

.search-field-overlay {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-main);
    font-size: 2.5rem;
    padding: 15px 50px 15px 0;
    font-family: inherit;
    font-weight: 700;
    transition: border-color 0.3s;
}

.search-field-overlay:focus {
    outline: none;
    border-bottom-color: var(--primary-yellow);
}

.search-field-overlay::placeholder {
    color: #444;
}

.search-submit-overlay {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary-yellow);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.search-submit-overlay:hover {
    transform: translateY(-50%) scale(1.1);
}

.search-results-preview {
    margin-top: 30px;
    color: var(--text-main);
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-yellow) transparent;
}

/* Templates Styles */
.page-header,
.archive-header {
    margin-bottom: 40px;
}

.page-title,
.section-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    border-left: 4px solid var(--primary-yellow);
    padding-left: 15px;
    line-height: 1;
}

.article-content-wrapper {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-main) !important;
}

.post-content p {
    color: var(--text-main) !important;
    margin-bottom: 1.5em;
}

.post-content h2,
.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-yellow);
}

.post-content p {
    margin-bottom: 20px;
}

/* Archive & Search Grid */
.archive-grid {
    margin-top: 30px;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-yellow);
    color: #000;
    border-color: var(--primary-yellow);
}

/* WooCommerce Overrides */
.woocommerce-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.woocommerce .button.alt {
    background-color: var(--primary-yellow) !important;
    color: #000 !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.woocommerce span.onsale {
    background-color: var(--primary-blue) !important;
}

.woocommerce-loop-product__title {
    color: var(--text-main) !important;
}

.price {
    color: var(--primary-yellow) !important;
}

/* User Dropdown Menu - Added previously but consolidated here if needed */

.search-results-preview::-webkit-scrollbar {
    width: 6px;
}

.search-results-preview::-webkit-scrollbar-thumb {
    background-color: var(--primary-yellow);
    border-radius: 4px;
}

.ajax-search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ajax-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: background 0.3s;
}

.ajax-search-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ajax-search-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.ajax-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ajax-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 20px;
}

.ajax-search-info {
    flex: 1;
}

.ajax-search-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ajax-search-date {
    font-size: 12px;
    color: var(--text-muted);
}

.ajax-search-footer {
    margin-top: 20px;
    text-align: center;
}

.ajax-search-footer a {
    color: var(--primary-yellow);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.ajax-search-footer a:hover {
    text-decoration: underline;
}

.ajax-loading,
.ajax-error,
.ajax-search-no-results {
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
    padding: 20px;
}

.site-navigation ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.site-navigation a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    transition: all 0.2s;
}

.site-navigation a:hover {
    color: var(--primary-yellow);
    opacity: 1;
}

.user-profile {
    width: 34px;
    height: 34px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

/* Typography & Layout */
section {
    padding: 40px 0;
}

h2.section-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.breaking-section {
    padding-bottom: 40px;
}

/* Breaking News - Desktop: Restored 1+4 Grid Layout */
.breaking-slider {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 12px;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    margin-bottom: 10px;
}

.breaking-slider::-webkit-scrollbar {
    display: none;
}

/* Main card - spans 2 rows */
.breaking-main {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 100%;
}

/* 4 side cards placed in 2x2 grid */
.breaking-slide:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.breaking-slide:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.breaking-slide:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.breaking-slide:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

/* Any extra items for scrolling */
.breaking-slide:nth-child(n+6) {
    grid-row: 1 / 3;
    width: 350px;
}

/* All slides */
.breaking-slide {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    cursor: pointer;
    min-height: 0;
}

/* Desktop: all images use absolute positioning */
.breaking-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.breaking-slide:hover img {
    transform: scale(1.04);
}

/* Dots hidden on desktop */
.slider-dots {
    display: none;
}

/* Dot button styles */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.dot.active {
    background: var(--primary-yellow);
    width: 22px;
    border-radius: 4px;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}

.breaking-main .card-overlay {
    padding: 24px;
}

.badge-exclusive {
    background: var(--primary-yellow);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.badge-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    /* Background and Color are now set inline via PHP for dynamic category colors */
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.card-meta i {
    margin-right: 4px;
}

.breaking-slide h3,
.breaking-slide h4 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff !important;
}

.news-card.large h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

/* Side news cards - full overlay style */
.side-news-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    cursor: pointer;
    min-height: 0;
}

.side-news-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.side-news-card:hover img {
    transform: scale(1.05);
}

.side-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
}

.side-news-card h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Popular Games Slider - UPDATED */
.popular-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    /* Hide scrollbar Firefox */
}

.popular-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.game-card {
    flex: 0 0 calc(22.2% - 12px);
    min-width: 220px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
}

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card .badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    margin-bottom: 0;
}

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.game-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Latest News Sections (Horizontal Scroll 2x4) */
.news-scroller-container {
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
}

.latest-news-list {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    /* 45vw ensures 2 columns take 90% of viewport, leaving a sliver of the 3rd regardless of container */
    grid-auto-columns: minmax(320px, 45vw) !important;
    gap: 20px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    touch-action: pan-x;
}

.news-entry {
    display: flex;
    gap: 20px;
    align-items: stretch;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.news-entry:hover {
    background: var(--bg-dark);
    border-color: var(--primary-yellow);
}

.deal-vote-capsule {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.deal-vote-capsule button {
    cursor: pointer;
    font-size: 11px;
    background: transparent;
    border: none;
    color: var(--text-muted);
}

.deal-snippet p {
    margin: 0;
    color: var(--text-muted);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .news-entry {
        flex-direction: row; /* Allow horizontal layout */
        align-items: center;
        gap: 16px;
        padding: 12px;
    }

    .news-entry h3 {
        font-size: 13px; /* Decreased from 15px */
    }

    .news-image {
        width: 100px; /* Square size */
        height: 100px; /* Square size */
        flex: 0 0 100px;
    }

    .news-content {
        padding: 0;
    }

    .news-content span.absolute {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-top: 8px;
    }
}

.latest-news-list::-webkit-scrollbar {
    display: none;
}

.scroller-arrow {
    position: absolute;
    top: calc(50% - 15px);
    /* Adjusted for padding-bottom */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.news-scroller-container:hover .scroller-arrow {
    opacity: 1;
    pointer-events: auto;
}

.scroller-arrow:hover {
    background: var(--primary-color, #ffda08);
    border-color: var(--primary-color, #ffda08);
    color: #000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 218, 8, 0.4);
}

.scroller-arrow.prev {
    left: 20px;
}

.scroller-arrow.next {
    right: 20px;
}

/* Discrete Button Style */
.btn-discrete {
    background: transparent;
    border: 1.5px solid #666; /* Grey border */
    color: #999; /* Grey text */
    padding: 12px 40px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

/* Light mode override */
html.light-mode .btn-discrete {
    border-color: #000;
    color: #000;
}

.btn-discrete:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.15);
}

html.light-mode .btn-discrete:hover {
    border-color: #000;
    color: #000;
    background: rgba(0,0,0,0.05);
}

.btn-discrete:active {
    transform: translateY(0);
}

/* Hide arrows on mobile/touch */
@media (max-width: 1024px) {
    .scroller-arrow {
        display: none !important;
    }

    .news-scroller-container {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .deals-list {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
        grid-auto-flow: row;
        gap: 16px;
        overflow-x: visible;
        padding: 0;
        margin: 0;
    }

    .deals-list .news-entry {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        padding: 12px;
        background: #111; /* Mockup has dark background */
        border-radius: 12px;
    }
    
    .deals-list .news-content {
        padding-top: 0;
    }

    .deals-list .news-content .mt-auto {
        display: none !important; /* Hide old container */
    }

    .deals-list .deal-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px;
        margin-top: 12px;
        width: 100%; /* Ensure full width */
        min-height: 40px; /* Ensure visibility */
    }

    .deals-list .comment-count-pill {
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 11px;
        font-weight: bold;
        color: #888;
        white-space: nowrap;
    }

    .deals-list .deal-cta-wrapper {
        display: none !important; /* Remove CTA row on mobile per user request */
    }
    
    .deals-list .news-image {
        width: 80px;
        height: 80px;
        flex: 0 0 80px;
        border-radius: 10px;
    }
    
    .deals-list .news-content .absolute {
        display: none;
    }

    .deals-list .news-entry h3 {
        padding-right: 48px;
    }
}

/* Specific Desktop Styles for Deals */
@media (min-width: 769px) {
    .deals-list .news-image {
        flex: 0 0 160px; /* Larger square for desktop */
        height: 160px;
        width: 160px;
    }

    .deals-list .news-entry h3 {
        padding-right: 70px; /* More space for larger vote capsule on desktop */
    }
}

/* Title Truncation for all Homepage Blocks */
.news-entry h3 a,
.game-title,
.breaking-slide h3 a,
.breaking-slide h4 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-entry {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    scroll-snap-align: start;
}

.news-image {
    flex: 0 0 145px;
    height: 95px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.news-entry:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.news-entry h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.light-mode .news-entry h3,
html.light-mode .news-entry h3 a {
    color: #111111 !important;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-count-box {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(59, 130, 246, 0.1);
    border: 1.5px solid rgba(59, 130, 246, 0.5);
    border-radius: 4px;
    padding: 1px 6px;
    color: #3b82f6;
    font-weight: 700;
    font-size: 11px;
}

.comment-count-box i {
    font-size: 10px;
}

.platform-tags {
    display: flex;
    gap: 6px;
}

.platform-tags .tag {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 1px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
}


/* Latest Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.review-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.review-image-wrap {
    position: relative;
}

.review-image-wrap img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.score-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #22c55e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
}

.review-info {
    padding: 15px;
}

.review-info h3 {
    font-size: 15px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    padding: 60px 0 20px;
    border-top: 2px solid var(--border-color);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 18px;
}

/* ============================================
   SINGLE ARTICLE (single.php)
   ============================================ */
.single-article {
    max-width: 900px;
    margin: 40px auto 0;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header .badge-category {
    margin-bottom: 15px;
    font-size: 12px;
    padding: 4px 12px;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.article-meta {
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 30px;
}

.article-featured-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

.article-content-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

/* WordPress Post Content Typography */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #d1d5db;
    /* slightly brighter than muted for reading */
}

.post-content>* {
    margin-bottom: 1.5em;
}

.post-content>*:last-child {
    margin-bottom: 0;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 26px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 22px;
}

.post-content h4 {
    font-size: 18px;
}

.post-content a {
    color: var(--primary-yellow);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.post-content a:hover {
    text-decoration-color: var(--primary-yellow);
}

.post-content ul,
.post-content ol {
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content blockquote {
    background: rgba(250, 204, 21, 0.05);
    /* very faint yellow */
    border-left: 4px solid var(--primary-yellow);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
    color: var(--text-main);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 2em auto;
}

/* Alignment classes output by WordPress */
.post-content .aligncenter {
    display: block;
    margin: 2em auto;
}

.post-content .alignleft {
    float: left;
    margin: 0 2em 2em 0;
}

.post-content .alignright {
    float: right;
    margin: 0 0 2em 2em;
}

.post-content .wp-caption {
    max-width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
    margin-top: -1em;
    margin-bottom: 2em;
}

.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.tags-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.article-comments {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

/* --- Facebook Style Comments (Premium Refinement) --- */
#comments {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list .children {
    list-style: none;
    padding-left: 48px;
    margin-top: 4px;
    position: relative;
}

/* Curved reply lines */
.comment-list .children::before {
    content: "";
    position: absolute;
    left: 20px;
    top: -12px;
    height: 36px;
    width: 20px;
    border-left: 2px solid #3e4042;
    border-bottom: 2px solid #3e4042;
    border-bottom-left-radius: 12px;
}

.comment-item {
    position: relative;
}

/* Vertical line for multiple replies */
.comment-list>.comment-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 45px;
    bottom: -15px;
    width: 2px;
    background: #3e4042;
}

.comment-avatar img {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-bubble {
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Reactions Display Refinement */
.comment-reactions-display {
    z-index: 10;
    cursor: default;
    user-select: none;
}

/* Reaction Picker Refinement */
.js-react-btn {
    font-size: 26px;
    /* Ensuring icons are visible */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.js-react-btn:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Reaction Picker Container */
.group\/like .absolute {
    min-width: 220px;
    height: 46px;
    padding: 0 8px;
    backdrop-filter: blur(10px);
}

.group\/like:hover .absolute {
    animation: slideUpFade 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .comment-list .children {
        padding-left: 32px;
    }

    .comment-list .children::before {
        left: 12px;
        width: 15px;
    }

    .comment-list>.comment-item:not(:last-child)::after {
        left: 12px;
    }

    .comment-bubble {
        max-width: 100%;
    }

    .comment-avatar img {
        width: 32px;
        height: 32px;
    }

    .comment-item .children .comment-avatar img {
        width: 24px;
        height: 24px;
    }

    #js-load-more-comments {
        width: 100%;
    }
}

.comment-author a {
    color: #E4E6EB !important;
    font-weight: 700 !important;
}

.comment-text {
    word-break: break-word;
}

.comment-actions span,
.comment-actions a {
    transition: color 0.2s;
}

.view-replies i {
    transform: scaleX(-1) rotate(180deg);
}

/* Comment Form Refinement */
#respond {
    margin-top: 30px;
    background: transparent;
    padding: 0;
    border: none;
}

.comment-form-comment textarea {
    line-height: 1.4;
}

.comment-form-comment i {
    color: #B0B3B8;
    transition: color 0.2s, transform 0.1s;
}

.comment-form-comment i:hover {
    color: #E4E6EB;
    transform: scale(1.1);
}

/* Comment Login CTA */
.comment-login-cta {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.social-login-btn {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    color: #E4E6EB;
    min-width: 200px;
    justify-content: center;
}

.social-login-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Light Mode Overrides */
html.light-mode .comment-login-cta {
    background: #ffffff !important;
    border-color: #ced0d4 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

html.light-mode .comment-login-cta h4 {
    color: #050505;
}

html.light-mode .social-login-btn {
    background: #F0F2F5;
    border-color: #ced0d4;
    color: #050505;
}

html.light-mode .social-login-btn:hover {
    background: #e4e6e9;
}

html.light-mode .comment-bubble {
    background: #F0F2F5;
}

html.light-mode .comment-author a,
html.light-mode .comment-text {
    color: #050505 !important;
}

html.light-mode .comment-actions {
    color: #65676B;
}

html.light-mode .comment-list .children::before,
html.light-mode .comment-list>.comment-item:not(:last-child)::after {
    background: transparent;
    border-color: #ced0d4;
}

html.light-mode .comment-form-comment {
    background: #f0f2f5;
}

html.light-mode .comment-form-comment textarea {
    color: #050505;
}

/* -------------------------------------------------------------------------
   Comment Tools (GIF & EMOJI)
------------------------------------------------------------------------- */
#js-emoji-picker,
#js-gif-picker {
    animation: pickerFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 8px 10px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 9999 !important;
    background: #242526 !important;
    opacity: 1 !important;
}

#js-emoji-picker span {
    font-size: 1.5rem !important;
    line-height: 1;
}

@keyframes pickerFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#js-gif-results {
    overflow-x: hidden !important;
    padding: 4px;
}

#js-gif-results img {
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
}

#js-gif-results img:hover {
    transform: scale(1.05);
    /* Slightly more zoom for better feel */
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

#js-gif-preview {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comment Action Menu */
.comment-actions-menu {
    margin-left: -5px;
    /* Slight overlap for closer proximity */
}

.js-comment-dropdown {
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.4), 0 2px 4px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: menuFadeIn 0.2s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.js-gif-trigger {
    transition: all 0.2s ease;
    user-select: none;
}

.js-gif-trigger:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Light Mode Overrides */
.light-mode #js-emoji-picker,
.light-mode #js-gif-picker {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode #js-gif-search {
    background: #f0f2f5 !important;
    color: #000000 !important;
}

.light-mode .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE - TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {

    /* Header */
    .header-search {
        max-width: 280px;
        margin: 0 20px;
    }


    /* Breaking News → horizontal slider */
    .breaking-slider {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        border-radius: var(--radius);
    }

    .breaking-slider::-webkit-scrollbar {
        display: none;
    }

    .breaking-slide {
        flex: 0 0 100%;
        scroll-snap-align: start;
        height: 280px;
        grid-row: auto !important;
        grid-column: auto !important;
    }

    /* Restore dots on tablet */
    .slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }

    /* Popular Games scroller */
    .game-card {
        flex: 0 0 160px;
    }

    .game-card img {
        height: 230px;
    }

    /* Latest News scroller (1.5 nodes wide approx) */
    .latest-news-list {
        grid-auto-columns: minmax(320px, 70%);
        gap: 15px 25px;
    }

    .news-image {
        flex: 0 0 110px;
        height: 75px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max 640px)
   ============================================ */
@media (max-width: 640px) {

    /* Header adjustments */
    .site-header {
        height: 64px;
    }

    .header-search {
        display: none;
        /* Hide search on mobile, or move to menu */
    }

    .site-navigation ul {
        display: none;
        /* Simple mobile approach: hide for now */
    }

    /* Breaking news height */
    .breaking-slide {
        height: 240px;
    }

    .breaking-main .card-overlay {
        padding: 16px;
    }

    .breaking-slide h3 {
        font-size: 18px;
    }

    /* Popular Games scroller */
    .game-card {
        flex: 0 0 140px;
    }

    .game-card img {
        height: 200px;
    }

    /* Latest News (1.5 columns visibility) */
    .latest-news-list {
        grid-auto-columns: minmax(280px, 85%);
        gap: 15px;
    }

    .section-title {
        font-size: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- PREMIUM GAME PAGE (ACF/IGDB) --- */
.optimus-game-container {
    background: var(--bg-dark);
    color: var(--text-main);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.optimus-game-hero img {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Add to Cart Premium Styling */
.woocommerce-cart-premium button.single_add_to_cart_button {
    width: 100% !important;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 1.25rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: auto !important;
}

.woocommerce-cart-premium button.single_add_to_cart_button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6) !important;
    filter: brightness(1.1) !important;
}

.woocommerce-cart-premium .variations select {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    width: 100% !important;
    padding: 10px !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1rem !important;
    outline: none !important;
}

.woocommerce-cart-premium .quantity {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.optimus-game-container section h2 {
    letter-spacing: -0.02em;
}

/* Article V2 - Enhancement Styles */
.article-sub-nav::-webkit-scrollbar {
    display: none;
}

.article-sub-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.badge-category {
    background: var(--primary-yellow);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category.news-jv {
    background: #ef4444;
    /* Retro compatibility */
    color: #fff;
}

.game-info-card {
    transition: all 0.3s ease;
}

.game-info-card:hover {
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.anticipated-widget img {
    transition: transform 0.5s ease;
}

.anticipated-widget .group:hover img {
    transform: scale(1.1);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.25rem;
    background: var(--primary-yellow);
    border-radius: 2px;
}

/* ==========================================================================
   bbPress Overrides (Optimus Theme Glassmorphism)
   ========================================================================== */

/* Remove default bbPress borders and backgrounds */
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results {
    border: none !important;
    background: transparent !important;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
    border-top: none !important;
    background: transparent !important;
}

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
    border-top: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Fix generic list styles in bbPress */
#bbpress-forums ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide breadcrumbs if they look ugly, or style them */
#bbpress-forums .bbp-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

#bbpress-forums .bbp-breadcrumb a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
}

#bbpress-forums .bbp-breadcrumb a:hover {
    text-decoration: underline;
}

/* Notices and Forms */
#bbpress-forums div.bbp-template-notice,
#bbpress-forums div.indicator-hint {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid var(--primary-yellow) !important;
    border-radius: var(--radius) !important;
    color: var(--text-main) !important;
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
}

#bbpress-forums div.bbp-template-notice a {
    color: var(--primary-yellow) !important;
}

#bbpress-forums fieldset.bbp-form {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    padding: 20px !important;
    background: var(--card-bg) !important;
}

#bbpress-forums fieldset.bbp-form legend {
    font-weight: 700;
    color: var(--text-main);
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="password"],
#bbpress-forums textarea {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    width: 100%;
}

#bbpress-forums button,
#bbpress-forums .submit {
    background: var(--primary-yellow) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

#bbpress-forums button:hover,
#bbpress-forums .submit:hover {
    background: #fff !important;
    transform: translateY(-2px);
}

/* Fix topic titles overriding flex */
#bbpress-forums .bbp-topic-title a.bbp-topic-permalink {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
}

#bbpress-forums .bbp-topic-title a.bbp-topic-permalink:hover {
    color: var(--primary-yellow);
}

/* Overrides for individual replies */
#bbpress-forums ul.bbp-replies {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    background: var(--card-bg) !important;
    margin-bottom: 20px !important;
}

#bbpress-forums div.even,
#bbpress-forums ul.even,
#bbpress-forums div.odd,
#bbpress-forums ul.odd {
    background-color: transparent !important;
}

#bbpress-forums li.bbp-body div.hentry {
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0 !important;
    background: transparent !important;
}

@media (min-width: 768px) {
    #bbpress-forums li.bbp-body div.hentry {
        flex-direction: row;
    }
}

#bbpress-forums li.bbp-body div.hentry:last-child {
    border-bottom: none !important;
}

#bbpress-forums div.bbp-reply-author {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid var(--border-color) !important;
    margin: 0 !important;
    padding: 20px !important;
    text-align: center;
    width: 100% !important;
}

@media (min-width: 768px) {
    #bbpress-forums div.bbp-reply-author {
        width: 180px !important;
        border-bottom: none !important;
        border-right: 1px solid var(--border-color) !important;
    }
}

#bbpress-forums div.bbp-reply-author img.avatar {
    border-radius: 50%;
    margin-bottom: 8px;
}

#bbpress-forums div.bbp-reply-content {
    background: transparent !important;
    padding: 20px !important;
    color: var(--text-main) !important;
    margin: 0 !important;
    flex: 1;
}

#bbpress-forums .bbp-author-name {
    color: var(--primary-yellow) !important;
    font-weight: 700 !important;
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

#bbpress-forums .bbp-reply-header {
    background: rgba(120, 120, 120, 0.05) !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 10px 20px !important;
    color: var(--text-muted) !important;
    font-size: 12px;
}

#bbpress-forums .bbp-reply-header a {
    color: var(--text-muted) !important;
}

#bbpress-forums .bbp-reply-header a:hover {
    color: var(--primary-yellow) !important;
}

/* Hide bbPress template notice info blocks */
#bbpress-forums div.bbp-template-notice.info {
    display: none !important;
}

/* Hide bbPress list headers on single topic reading view */
.single-topic #bbpress-forums li.bbp-header {
    display: none !important;
}

/* Alternating row backgrounds for topic lists */
#bbpress-forums ul.bbp-topics>li.bbp-body>ul.even,
#bbpress-forums ul.bbp-forums>li.bbp-body>ul.even {
    background-color: rgba(120, 120, 120, 0.08) !important;
    /* Lighter stripe - highly visible */
}

#bbpress-forums ul.bbp-topics>li.bbp-body>ul.odd,
#bbpress-forums ul.bbp-forums>li.bbp-body>ul.odd {
    background-color: transparent !important;
    /* Darker stripe - matches background */
}

/* ========================================================================= */
/* BBPRESS - CUSTOM WYSIWYG EDITOR (DISCORD STYLE)
/* ========================================================================= */

#bbp-topic-form fieldset.bbp-form,
#bbp-reply-form fieldset.bbp-form {
    border: none;
    padding: 0;
}

/* Wrapper over the editor */
.wp-editor-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    /* Inverses all children: container is now on top of quicktags-toolbar */
}

/* The actual text area wrapper */
.wp-editor-container {
    border: none !important;
}

/* The TinyMCE iframe itself and Quicktags textarea */
.wp-editor-container iframe,
.wp-editor-area {
    min-height: 150px !important;
    background: transparent !important;
    /* Must be transparent so it shows container bg */
}

/* Fallback textarea styles (Quicktags) */
.wp-editor-area {
    color: var(--text-main) !important;
    padding: 16px !important;
    font-family: 'Spline Sans', sans-serif !important;
    border: none !important;
    box-shadow: none !important;
}

/* The toolbar (TinyMCE & Quicktags) */
div.mce-toolbar-grp,
div.quicktags-toolbar {
    background: rgba(0, 0, 0, 0.3) !important;
    border-bottom: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 4px 8px !important;
    display: flex;
    flex-wrap: wrap;
}

div.mce-toolbar-grp {
    order: 2;
    /* Puts the toolbar on BOTTOM inside mce-panel */
}

div.mce-panel {
    display: flex;
    flex-direction: column;
}

/* Toolbar buttons (TinyMCE) */
div.mce-toolbar-grp .mce-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    margin: 2px 1px !important;
    transition: all 0.2s ease !important;
}

div.mce-toolbar-grp .mce-btn button {
    color: #9ca3af !important;
    /* text-gray-400 */
}

div.mce-toolbar-grp .mce-btn:hover,
div.mce-toolbar-grp .mce-btn.mce-active {
    background: rgba(255, 255, 255, 0.1) !important;
}

div.mce-toolbar-grp .mce-btn:hover button,
div.mce-toolbar-grp .mce-btn.mce-active button {
    color: #ffffff !important;
}

/* Toolbar buttons (Quicktags) */
div.quicktags-toolbar input.button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    margin: 2px 1px !important;
    color: #9ca3af !important;
    /* text-gray-400 */
    transition: all 0.2s ease !important;
    padding: 6px 10px !important;
    text-transform: capitalize;
}

div.quicktags-toolbar input.button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Hide some annoying TinyMCE chrome */
div.mce-statusbar {
    display: none !important;
    /* Hide path/resize bar */
}

/* Focus state of the whole wrapper */
.wp-editor-wrap.wp-editor-focus,
.wp-editor-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

/* Label above editor */
#bbp-topic-form label[for="bbp_topic_content"],
#bbp-reply-form label[for="bbp_reply_content"] {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
}

/* Submit buttons section */
.bbp-submit-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    /* Align button to right */
}

/* Style the submit button nicely */
.bbp-submit-wrapper button.submit {
    background-color: #f97316;
    /* Orange */
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.bbp-submit-wrapper button.submit:hover {
    background-color: #ea580c;
    transform: translateY(-1px);
}

/* =====================
   COLLAPSIBLE REPLIES
   ===================== */
.js-replies-container.hidden {
    display: none;
}

.comment-list ul.children {
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 3px solid rgba(255, 255, 255, 0.05);
}

/* Light mode support */
html.light-mode .comment-list ul.children {
    border-left-color: rgba(0, 0, 0, 0.05);
}

/* Reaction Active States */
.react-active-like {
    color: #2D88FF !important;
}

.react-active-love {
    color: #F33E58 !important;
}

.react-active-haha,
.react-active-wow,
.react-active-sad {
    color: #F7B125 !important;
}

.react-active-angry {
    color: #E9710F !important;
}

/* =====================
   DEAL TEMPERATURE BADGES
   ===================== */
.js-temp-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.js-temp-badge.temp-very-hot {
    background: linear-gradient(135deg, #ff4d00, #ff0000);
    color: white;
    box-shadow: 0 0 10px rgba(255, 77, 0, 0.4);
    animation: pulse-hot-mini 2s infinite;
}

.js-temp-badge.temp-hot {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.js-temp-badge.temp-neutral {
    background: rgba(255, 255, 255, 0.05);
    color: #B0B3B8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.js-temp-badge.temp-cold {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
}

.js-temp-badge.temp-expired {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

@keyframes pulse-hot-mini {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* =====================
   EXPIRED DEALS STYLES
   ===================== */
.temp-expired {
    background: rgba(220, 38, 38, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
}

.is-expired .grayscale {
    filter: grayscale(100%);
}

.is-expired .line-through {
    text-decoration: line-through;
}

/* Animations for expired state */
@keyframes flash-expired {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.is-expired .animate-pulse {
    animation: flash-expired 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* =====================
   SHARE MODAL STYLES
   ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: #B0B3B8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn i {
    font-size: 24px;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-2px);
}

.share-btn.whatsapp:hover {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.3);
}

.share-btn.twitter:hover {
    color: #1DA1F2;
    border-color: rgba(29, 161, 242, 0.3);
}

.share-btn.facebook:hover {
    color: #4267B2;
    border-color: rgba(66, 103, 178, 0.3);
}

.share-btn.email:hover {
    color: #EA4335;
    border-color: rgba(234, 67, 53, 0.3);
}

.share-btn.clipboard:hover {
    color: #00a8c1;
    border-color: rgba(0, 168, 193, 0.3);
}

.share-btn.clipboard.copied {
    background: rgba(0, 168, 193, 0.1);
    color: #00a8c1 !important;
    border-color: #00a8c1;
}