/**
 * Beyond Infinity Page Styles
 * Styles for YouTube Video & Playlist Showcase
 *
 * @package Infinity_Space_Theme
 */

@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:wght@200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

/* Hero Background & Cosmic Glow */
.hero-bg {
    background: linear-gradient(
        180deg,
        rgba(173, 216, 230, 0.4) 0%,
        rgba(221, 160, 221, 0.3) 20%,
        rgba(255, 182, 193, 0.3) 40%,
        rgba(255, 218, 185, 0.2) 60%,
        rgba(240, 248, 255, 0.1) 80%,
        transparent 100%
    );
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -30%;
    width: 160%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(173, 216, 230, 0.25) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 10%, rgba(221, 160, 221, 0.18) 0%, transparent 70%),
                radial-gradient(ellipse at 20% 40%, rgba(255, 182, 193, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(255, 218, 185, 0.2) 0%, transparent 60%);
    animation: float-shapes 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-shapes {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-10px, -15px) rotate(1deg);
    }
    50% {
        transform: translate(15px, -10px) rotate(-1deg);
    }
    75% {
        transform: translate(-5px, 10px) rotate(0.5deg);
    }
}

/* Footer Background - matches theme footer orientation */
.footer-bg {
    rotate: 180deg;
    background: linear-gradient(
        180deg,
        rgba(173, 216, 230, 0.4) 0%,
        rgba(221, 160, 221, 0.2) 20%,
        rgba(255, 182, 193, 0.15) 40%,
        rgba(255, 218, 185, 0.12) 60%,
        rgba(240, 248, 255, 0.07) 80%,
        transparent 100%
    );
    position: relative;
    overflow: hidden;
}

.footer-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(173, 216, 230, 0.21) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 10%, rgba(221, 160, 221, 0.13) 0%, transparent 70%),
                radial-gradient(ellipse at 20% 40%, rgba(255, 182, 193, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(255, 218, 185, 0.16) 0%, transparent 60%);
    animation: float-shapes 15s ease-in-out infinite;
    pointer-events: none;
}

/* Floating 3D Icons */
.floating-icon {
    position: absolute;
    animation: smoothFloat 6s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.floating-icon:nth-child(1) {
    animation-delay: 0.3s;
}

.floating-icon:nth-child(2) {
    animation-delay: 0.8s;
}

.floating-icon:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes smoothFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-16px) rotate(3deg);
        opacity: 1;
    }
}

/* Hide floating icons on mobile to prevent collision with hero title and text */
@media (max-width: 767px) {
    .floating-icon {
        display: none !important;
    }
}

/* Category Quick Jump Navigation Bar */
.category-nav-bar {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.category-nav-pill {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.category-nav-pill:hover {
    background: rgba(0, 154, 255, 0.1);
    color: #009aff;
    transform: translateY(-1px);
}

.category-nav-pill.active {
    background: linear-gradient(135deg, #0094f4 0%, #0076d6 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 154, 255, 0.35);
}

/* ==========================================================================
   CARD STYLES - SINGLE VIDEO CARDS
   ========================================================================== */
.beyond-video-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.9);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.beyond-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -8px rgba(0, 154, 255, 0.18), 0 10px 15px -3px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 154, 255, 0.4);
}

.beyond-video-card .card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.beyond-video-card .card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.beyond-video-card:hover .card-thumb-img {
    transform: scale(1.08);
}

/* YouTube Play Button */
.yt-play-button-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.yt-play-btn {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yt-play-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #ffffff;
    margin-left: 3px;
}

.beyond-video-card:hover .yt-play-btn {
    transform: scale(1.18);
    background: #ff0000;
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.65);
}

.beyond-video-card:hover .yt-play-button-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   CARD STYLES - PLAYLIST CARDS (STACKED DECK EFFECT)
   ========================================================================== */
.beyond-playlist-wrapper {
    position: relative;
    padding-top: 10px;
    padding-right: 8px;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Stack Layer 2 (Backmost) */
.beyond-playlist-wrapper .deck-layer-2 {
    position: absolute;
    top: 0px;
    right: 2px;
    left: 10px;
    bottom: 12px;
    background: #cbd5e1;
    border-radius: 1.35rem;
    border: 1px solid rgba(203, 213, 225, 0.8);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    opacity: 0.55;
    transform: rotate(2deg);
}

/* Stack Layer 1 (Middle) */
.beyond-playlist-wrapper .deck-layer-1 {
    position: absolute;
    top: 5px;
    right: 5px;
    left: 5px;
    bottom: 6px;
    background: #e2e8f0;
    border-radius: 1.35rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    opacity: 0.8;
    transform: rotate(1deg);
}

/* Main Playlist Card (Top) */
.beyond-playlist-card {
    position: relative;
    z-index: 3;
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 6px 25px -4px rgba(0, 154, 255, 0.12), 0 2px 8px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid #009aff;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Playlist Hover Animation (Fanning Deck) */
.beyond-playlist-wrapper:hover .deck-layer-2 {
    transform: translate(6px, -6px) rotate(4deg);
    opacity: 0.75;
    background: #93c5fd;
    border-color: #60a5fa;
}

.beyond-playlist-wrapper:hover .deck-layer-1 {
    transform: translate(3px, -3px) rotate(2deg);
    opacity: 0.95;
    background: #bfdbfe;
    border-color: #93c5fd;
}

.beyond-playlist-wrapper:hover .beyond-playlist-card {
    transform: translateY(-5px);
    box-shadow: 0 22px 40px -10px rgba(0, 154, 255, 0.3), 0 10px 20px -3px rgba(0, 0, 0, 0.08);
    border-color: #0076d6;
}

.beyond-playlist-card .card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.beyond-playlist-card .card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.beyond-playlist-wrapper:hover .card-thumb-img {
    transform: scale(1.08);
}

/* Playlist Sidebar/Bottom Indicator Bar */
.playlist-indicator-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.95) 100%);
    padding: 1.5rem 0.875rem 0.625rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.playlist-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0, 154, 255, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   DYNAMIC SEE MORE / LOAD MORE
   ========================================================================== */
.beyond-grid-item.beyond-item-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.beyond-grid-item.beyond-item-visible {
    display: flex !important;
    animation: fadeInCard 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInCard {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.beyond-see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #009aff;
    background: #ffffff;
    border: 2px solid #009aff;
    box-shadow: 0 4px 16px rgba(0, 154, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.beyond-see-more-btn:hover {
    background: #009aff;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 154, 255, 0.35);
    transform: translateY(-2px);
}

.beyond-see-more-btn svg {
    transition: transform 0.3s ease;
}

.beyond-see-more-btn.is-expanded svg {
    transform: rotate(180deg);
}

/* Section Divider Accent */
.category-title-accent {
    width: 3.5rem;
    height: 4px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #009aff 0%, #00e0ff 100%);
}

/* ==========================================================================
   BEYOND HERO SECTION - RESPONSIVE PADDING & LAYOUT
   ========================================================================== */
.beyond-hero-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 140px !important;
    padding-bottom: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

@media (min-width: 640px) {
    .beyond-hero-section {
        padding-top: 150px !important;
        padding-bottom: 60px !important;
    }
}

@media (min-width: 768px) {
    .beyond-hero-section {
        padding-top: 165px !important;
        padding-bottom: 80px !important;
        min-height: 480px !important;
        justify-content: center !important;
    }
}

@media (min-width: 1024px) {
    .beyond-hero-section {
        padding-top: 180px !important;
        padding-bottom: 90px !important;
        min-height: 520px !important;
    }
}

/* ==========================================================================
   PANNARAYA HERO BADGE (ABSOLUTE BOTTOM-RIGHT)
   ========================================================================== */
.pannaraya-hero-badge {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 25;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pannarayaFloating 6s ease-in-out infinite;
}

.pannaraya-hero-badge img {
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.pannaraya-hero-badge:hover img {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 16px 32px rgba(0, 154, 255, 0.22));
}

@keyframes pannarayaFloating {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1.5deg);
    }
}

/* Hide Pannaraya logo completely on mobile screens (< 768px) */
@media (max-width: 767px) {
    .pannaraya-hero-badge {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .pannaraya-hero-badge {
        right: 1.5rem;
        bottom: 1.5rem;
        max-width: 160px;
    }
}

@media (min-width: 1025px) and (max-width: 1535px) {
    .pannaraya-hero-badge {
        right: 2.5rem;
        bottom: 2rem;
        max-width: 220px;
    }
}

@media (min-width: 1536px) {
    .pannaraya-hero-badge {
        right: 4rem;
        bottom: 2.5rem;
        max-width: 280px;
    }
}


