/* Micro-interactions & Showcase Card Styles */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Glassmorphic Showcase Card */
.showcase-card {
    background: rgba(25, 25, 30, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.showcase-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 215, 0, 0.5);
    background: transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
}

.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-image-wrapper img {
    transform: scale(1.1);
}

.showcase-name {
    font-family: 'Lobster', cursive;
    font-size: 2.2em;
    color: #fff;
    margin: 0 0 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.showcase-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.showcase-name a:hover {
    color: #FFD700;
}

/* Elegant Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-pill {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-size: 0.85em;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Glass Filter */
.glass-filter {
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
}

.glass-filter:focus,
.glass-filter:hover {
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.1);
}

.glass-filter option {
    background: #1a1a1a;
    color: #fff;
}

.filter-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.filter-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #FFD700;
    font-size: 0.8em;
}

/* Inline Filter */
.custom-dropdown {
    position: relative;
    display: inline-block;
    font-size: 1.05em;
    padding: 4px 30px 4px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    font-weight: bold;
    backdrop-filter: blur(5px);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    user-select: none;
    z-index: 20;
    /* Ensure this is firmly above showcase card */
}

.custom-dropdown::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #FFD700;
    font-size: 0.7em;
    opacity: 0.8;
}

.custom-dropdown:hover,
.custom-dropdown.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.custom-dropdown-options {
    position: absolute;
    top: 42px;
    /* Fixed pixel distance rather than % to fix flex bug */
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-dropdown-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.custom-dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 10px;
}

.custom-option {
    padding: 10px 20px;
    color: #fff;
    font-weight: normal;
    text-shadow: none;
    font-size: 0.95em;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.custom-option:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

/* Floating Arrows */
.showcase-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.nav-arrow:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .showcase-nav {
        flex-direction: column;
        gap: 20px;
    }

    .showcase-card {
        order: -1;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-arrows {
        display: flex;
        gap: 20px;
        order: 1;
        justify-content: center;
        width: 100%;
    }

    /* Hide desktop arrows */
    .nav-arrow.desktop-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-arrows {
        display: none !important;
    }
}

.breaking-news-banner {
    background: rgba(25, 25, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    position: relative;
    z-index: 10;
}

.breaking-news-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breaking-badge {
    background: linear-gradient(45deg, #FF0000, #990000);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.85em;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: flash 2s infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.breaking-source {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.9em;
}

.breaking-title {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.breaking-title:hover {
    color: #FFD700;
    text-decoration: none;
}

.breaking-related {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.breaking-related-label {
    color: #aaa;
}

.breaking-related-link {
    color: #FFD700;
    text-decoration: none;
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.breaking-related-link:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .breaking-news-content {
        gap: 10px;
        text-align: center;
    }

    .breaking-title {
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .daily-duel-mobile-banner {
        display: block !important;
    }
}

/* Orbital System Styles */
.showcase-card.orbital-system {
    width: 500px;
    height: 500px;
    max-width: 90vw;
    max-height: 90vw;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

.showcase-card.orbital-system:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.orbital-core {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.orbital-core .showcase-image-wrapper {
    width: 170px;
    height: 170px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    overflow: hidden;
    background: transparent;
    position: relative;
}

.orbital-core .showcase-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
}

.orbital-core .showcase-name {
    font-size: 1.6em;
    margin-bottom: 8px;
    line-height: 1.1;
}

.orbital-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sat-system {
    position: absolute;
    top: 50%;
    left: 50%;
    /* width/height 0 to be perfectly centered */
    animation: spin var(--s-duration) linear infinite;
    animation-delay: var(--s-delay);
    z-index: 5;
}

.sat-system:hover {
    animation-play-state: paused;
}

.sat-orbit-ring {
    display: none;
}

.sat-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--s-radius);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--s-color));
    transform-origin: 0 50%;
    z-index: 2;
}

.sat-element {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--s-size);
    height: var(--s-size);
    transform: translate(calc(var(--s-radius) - 50%), -50%);
    pointer-events: auto;
    z-index: 10;
}

.sat-counter-spin {
    width: 100%;
    height: 100%;
    animation: spin-reverse var(--s-duration) linear infinite;
    animation-delay: var(--s-delay);
    border-radius: 50%;
}

.sat-system:hover .sat-counter-spin {
    animation-play-state: paused;
}

.sat-img-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--s-color);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 15px var(--s-color);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    background: #000;
}

.sat-img-wrapper:hover {
    transform: scale(1.3);
    border-color: #fff;
    z-index: 20;
    box-shadow: 0 0 30px var(--s-color);
}

.sat-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
}

.sat-name {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 25;
    border: 1px solid var(--s-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.sat-img-wrapper:hover~.sat-name {
    opacity: 1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@media (max-width: 768px) {
    .orbital-core .showcase-image-wrapper {
        width: 100px;
        height: 100px;
    }

    .category-pills {
        gap: 5px;
    }

    .category-pill {
        padding: 4px 10px;
        font-size: 0.75em;
    }

    .showcase-center-wrapper {
        order: -1;
    }

    /* Allow scaling down dynamically on mobile if needed via JS or CSS */
}

/* New Extracted Styles */
.hero-search-wrapper input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.1em;
    outline: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#hero-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-top: 10px;
    overflow: hidden;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    text-align: left;
}

.no-personality-message {
    text-align: center;
    color: #aaa;
    z-index: 10;
}

.orbital-info-panel {
    margin-top: 30px;
    text-align: center;
    z-index: 10;
}

.live-activity-loading {
    color: #aaa;
    font-style: italic;
}

.pulse-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, rgba(15, 15, 20, 0.6), rgba(5, 5, 10, 0.8));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.pulse-col {
    flex: 1;
    min-width: 300px;
}

.pulse-title {
    font-family: 'Lobster', cursive;
    font-size: 2.2em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.pulse-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    color: #fff;
    height: 90px;
    box-sizing: border-box;
}

.pulse-card:hover {
    transform: translateX(10px);
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.pulse-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.pulse-info h4 {
    margin: 0 0 5px;
    font-size: 1.1em;
    font-family: 'Lobster', cursive;
}

.pulse-stats {
    font-size: 0.85em;
    color: #aaa;
    display: flex;
    gap: 10px;
}

.pulse-stats .likes {
    color: #4CAF50;
}

.pulse-stats .dislikes {
    color: #F44336;
}

.live-feed-item {
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid #FFD700;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95em;
    animation: slideInFeed 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 90px;
    box-sizing: border-box;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.live-feed-item:hover {
    transform: translateX(5px);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
    border-left-color: #fff;
}

.live-feed-item img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

@keyframes slideInFeed {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.arena-cta-section {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(ellipse at center, rgba(40, 30, 20, 0.9) 0%, rgba(15, 15, 20, 0.95) 70%, #0a0a0f 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

.arena-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.arena-title {
    font-family: 'Lobster', cursive;
    font-size: 3.2em;
    color: #FFD700;
    margin-bottom: 15px;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.arena-subtitle {
    font-size: 1.3em;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.arena-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.35em;
    padding: 16px 45px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #111;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    animation: arena-pulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.arena-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.5), inset 0 2px 15px rgba(255, 255, 255, 0.8);
    color: #000;
    animation: none;
    border-color: rgba(255, 255, 255, 0.8);
}

@keyframes arena-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 165, 0, 0), inset 0 2px 10px rgba(255, 255, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0), inset 0 2px 10px rgba(255, 255, 255, 0.6);
    }
}

.arena-icon {
    font-size: 1.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    display: inline-block;
}

.arena-icon-right {
    transform: scaleX(-1);
}

.arena-preview-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-bottom: 50px;
    height: 200px;
    position: relative;
    z-index: 2;
}

.preview-portrait {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
}

.preview-vs {
    font-family: 'Lobster', cursive;
    font-size: 4em;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.8);
    animation: pulseVs 1.5s infinite alternate;
    margin: 0 -45px;
    z-index: 5;
    position: relative;
}

@keyframes pulseVs {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.9;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }

    100% {
        transform: scale(1.15) translateY(-5px);
        opacity: 1;
        text-shadow: 0 0 35px rgba(255, 0, 0, 1), 0 0 10px rgba(255, 215, 0, 0.8);
    }
}

.nav-arrow:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}