/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.3.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ============================================
   Elementor Sticky Header Fix
   ============================================ */

/*
 * Header structure:
 * - Section 1: Marquee top bar (not sticky)
 * - Section 2: Main header (sticky)
 */

/* Ensure sticky header has proper z-index and background */
.elementor-location-header .elementor-sticky--active {
    z-index: 9999 !important;
}

/* Header sections z-index hierarchy */
/* Top bar (first section) - lower z-index, should go behind sticky header */
.elementor-location-header .elementor-section:first-child:not(.elementor-sticky--active) {
    z-index: 1 !important;
}

/* Main header section with nav menu - needs to be above homepage slider (z-index: 50) */
/* This ensures dropdown menu shows above the slider carousel */
.elementor-location-header .elementor-section:nth-child(2):not(.elementor-sticky--active) {
    z-index: 100 !important;
}

/* Ensure spacer doesn't create visual duplication */
.elementor-location-header .elementor-sticky__spacer {
    z-index: 0 !important;
    background: transparent !important;
}

/* ============================================
   Fix: White space when header becomes sticky
   Remove the 5px margin-top from the spacer element
   ============================================ */
.elementor-9518 .elementor-element.elementor-element-d5f494a.elementor-sticky__spacer {
    margin-top: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Also target general spacer elements for the sticky section */
.elementor-location-header .elementor-sticky__spacer.elementor-section {
    margin-top: 0 !important;
}

/* ============================================
   Desktop Header Stream Name Fix
   ============================================ */
/* Prevent stream name from wrapping to next line on desktop when not logged in */
@media screen and (min-width: 769px) {
    /* Ensure the header row widgets don't wrap */
    .elementor-location-header .elementor-section:nth-child(2) .elementor-column:first-child .elementor-widget-wrap {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    /* Allow stream name widget to shrink if needed */
    .elementor-widget:has(.stream-name) {
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /* Stream name text should truncate with ellipsis on desktop */
    .stream-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ============================================
   MY CRATE Menu Item - User Icon
   ============================================ */
/* Add user icon to the left of MY CRATE menu item (desktop only) */
@media screen and (min-width: 769px) {
    .my-crate-menu-item > a.elementor-item {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .my-crate-menu-item > a.elementor-item::before {
        content: "" !important;
        position: relative !important;
        display: block !important;
        width: 0.85rem !important;
        height: 0.85rem !important;
        min-width: 0.85rem !important;
        min-height: 0.85rem !important;
        background-image: url('/wp-content/uploads/2026/01/HydeFM_UserIcon_V3.svg') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        flex-shrink: 0 !important;
        /* Turn white icon to blue #0000ff */
        filter: brightness(0) saturate(100%) invert(12%) sepia(100%) saturate(7500%) hue-rotate(246deg) brightness(100%) contrast(120%) !important;
        transition: filter 0.02s ease !important;
        margin-right: -4px;
        opacity: 1 !important;
    }

    .my-crate-menu-item > a.elementor-item:hover::before {
        filter: none !important; /* Back to white on hover */
    }
}

/* Remove extra padding on spacer element (mobile) - prevents white space under sticky header */
@media screen and (max-width: 768px) {
    /* Target the spacer (clone) element, NOT the active sticky element */
    .elementor-location-header .elementor-sticky__spacer {
        padding: 0 !important;
        margin: 0 !important;
    }

    .elementor-location-header .elementor-sticky__spacer > .elementor-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .elementor-location-header .elementor-sticky__spacer .elementor-widget-wrap {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Target the specific header section spacer element */
    .elementor-9518 .elementor-element.elementor-element-d5f494a.elementor-sticky__spacer {
        padding: 0 !important;
    }
}



/* Hide sticky header when mobile menu is open */
body.hydefm-menu-open .elementor-sticky--active {
    z-index: 999 !important;
}

body.hydefm-menu-open .hydefm-mobile-menu {
    z-index: 1000 !important;
}

/* ============================================
   HydeFM Mobile Responsive Styles
   ============================================ */

/* --------------------------------------------
   Hamburger Menu Button
   -------------------------------------------- */
.hydefm-hamburger {
    display: none;
    width: 20px;
    height: 20px;
    background: transparent!important;
    border: none!important;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.hydefm-hamburger-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
}

.hydefm-hamburger span {
    display: block;
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hydefm-hamburger span:nth-child(1) {
    top: 3px;
}

.hydefm-hamburger span:nth-child(2) {
    top: 8px;
}

.hydefm-hamburger span:nth-child(3) {
    top: 13px;
}

/* Hamburger to X animation */
.hydefm-hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.hydefm-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hydefm-hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

.hydefm-hamburger:hover {
    background: #000000;
}

.hydefm-hamburger:hover span {
    background: #ffffff;
}

/* --------------------------------------------
   Mobile User Icon (next to hamburger)
   -------------------------------------------- */
.hydefm-mobile-user-icon {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Ensure header right column uses horizontal flex layout */
    .elementor-location-header .elementor-section:nth-child(2) .elementor-column:last-child .elementor-widget-wrap {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
    }

    .hydefm-mobile-user-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        padding: 0;
        margin-right: 0px;
        background: transparent;
        border: none;
        cursor: pointer;
        text-decoration: none;
        flex-shrink: 0;
        margin-top: -2px;
    }

    .hydefm-mobile-user-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: none; /* Keep white */
    }
}

/* --------------------------------------------
   Mobile Menu Overlay
   -------------------------------------------- */
.hydefm-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0000ff;
    z-index: 1000;
    padding: 100px 25px 25px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.hydefm-mobile-menu.active {
    transform: translateY(0);
}

/* Mobile Menu Close Button */
.hydefm-mobile-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hydefm-mobile-close:hover {
    background: #000000;
}

/* CSS X icon */
.hydefm-mobile-close .close-x {
    position: relative;
    width: 25px;
    height: 25px;
}

.hydefm-mobile-close .close-x::before,
.hydefm-mobile-close .close-x::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 2px;
    background: #fff !important;
    transition: background 0.2s ease;
}

.hydefm-mobile-close .close-x::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.hydefm-mobile-close .close-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hydefm-mobile-close:hover .close-x::before,
.hydefm-mobile-close:hover .close-x::after {
    background: #ffffff;
}

/* Mobile Search Container */
.hydefm-mobile-menu .mobile-search-container {
    margin-bottom: 40px;
}

/* Mobile Search Form */
.hydefm-mobile-menu .mobile-search-form {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ffffff;
}

.hydefm-mobile-menu .mobile-search-form input[type="search"] {
    flex: 1;
    padding: 10px 0;
    font-size: 0.75rem;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    border: none;
    background: transparent;
    color: #ffffff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.hydefm-mobile-menu .mobile-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Search submit button */




.hydefm-mobile-menu .mobile-search-submit {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hydefm-mobile-menu .mobile-search-submit .search-icon {
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: relative;
}

.hydefm-mobile-menu .mobile-search-submit .search-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background: #ffffff;
    bottom: -6px;
    right: -2px;
    transform: rotate(-45deg);
}

/* Clear button (X) in search input - make white */
.hydefm-mobile-menu .mobile-search-form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center/contain no-repeat;
    cursor: pointer;
}

/* Firefox clear button */
.hydefm-mobile-menu .mobile-search-form input[type="search"]::-moz-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* Mobile Menu Items */
.hydefm-mobile-menu .mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hydefm-mobile-menu .mobile-menu-items li {
    margin-bottom: 12px;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.hydefm-mobile-menu.active .mobile-menu-items li {
    transform: translateX(0);
    opacity: 1;
}

/* Stagger animation for menu items */
.hydefm-mobile-menu.active .mobile-menu-items li:nth-child(1) { transition-delay: 0.1s; }
.hydefm-mobile-menu.active .mobile-menu-items li:nth-child(2) { transition-delay: 0.15s; }
.hydefm-mobile-menu.active .mobile-menu-items li:nth-child(3) { transition-delay: 0.2s; }
.hydefm-mobile-menu.active .mobile-menu-items li:nth-child(4) { transition-delay: 0.25s; }
.hydefm-mobile-menu.active .mobile-menu-items li:nth-child(5) { transition-delay: 0.3s; }
.hydefm-mobile-menu.active .mobile-menu-items li:nth-child(6) { transition-delay: 0.35s; }
.hydefm-mobile-menu.active .mobile-menu-items li:nth-child(7) { transition-delay: 0.4s; }
.hydefm-mobile-menu.active .mobile-menu-items li:nth-child(8) { transition-delay: 0.45s; }

.hydefm-mobile-menu .mobile-menu-items a {
    display: inline-block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #0000ff;
    background: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.hydefm-mobile-menu .mobile-menu-items a:hover,
.hydefm-mobile-menu .mobile-menu-items a:focus {
    background: #000000;
    color: #ffffff;
}

/* Current/Active menu item */
.hydefm-mobile-menu .mobile-menu-items li.current-menu-item a,
.hydefm-mobile-menu .mobile-menu-items a.active {
    background: #000000;
    color: #ffffff;
}

/* Search label icon in mobile menu */
.hydefm-mobile-menu .mobile-search-container .e-search-label {
    color: #ffffff !important;
}

.hydefm-mobile-menu .mobile-search-container label {
    color: #ffffff !important;
    border-bottom: none !important;
}

.hydefm-mobile-menu .mobile-search-container label svg {
    fill: #ffffff !important;
}

/* Remove any background/border from search wrapper */
.hydefm-mobile-menu .mobile-search-container .e-search,
.hydefm-mobile-menu .mobile-search-container .elementor-widget-container {
    background: transparent !important;
    border: none !important;
}

/* Search results dropdown in mobile */
.hydefm-mobile-menu .mobile-search-container output,
.hydefm-mobile-menu .mobile-search-container .e-search-results {
    background: #ffffff !important;
    color: #0000ff !important;
}

/* --------------------------------------------
   Mobile Breakpoint (768px and below)
   -------------------------------------------- */
@media screen and (max-width: 768px) {
    /* Show hamburger button */
    .hydefm-hamburger {
        display: block;
    }

    /* Show mobile menu container (still hidden until .active) */
    .hydefm-mobile-menu {
        display: block;
    }

    /* Hide desktop search and nav menu */
    .elementor-widget-search,
    .elementor-widget-nav-menu,
    .my-custom-menu {
        display: none !important;
    }

    /* Adjust header columns for mobile */
    .elementor-location-header .elementor-section:nth-child(2) .elementor-column {
        width: auto !important;
    }

    /* Keep left column content (play button + stream name) - takes remaining space */
    .elementor-location-header .elementor-section:nth-child(2) .elementor-column:first-child {
        flex: 1 !important;
        min-width: 0 !important;
    }

    /* Right column - just hamburger (minimal width) */
    .elementor-location-header .elementor-section:nth-child(2) .elementor-column:last-child {
        width: 15% !important;
        flex: 0 0 15% !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    /* Reduce header padding on mobile */
    .elementor-location-header .elementor-section:nth-child(2) {
        padding: 10px 15px !important;
    }

    /* Make the stream name widget expand to fill available space */
    .elementor-widget:has(.stream-name) {
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .stream-name {
        font-size: 0.75rem !important;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* When marquee is active on stream name */
    .stream-name.marquee-active {
        text-overflow: clip;
    }

    .stream-name.marquee-active .marquee-wrapper {
        animation: streamMarquee 12s linear infinite;
    }

    /* Hide marquee on very small screens */
    .marquee-container {
        font-size: 0.8rem;
    }
}

/* --------------------------------------------
   Small Mobile (480px and below)
   -------------------------------------------- */
@media screen and (max-width: 480px) {
    /* Make the stream name widget expand to fill available space */
    .elementor-widget:has(.stream-name) {
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    /* Even smaller stream name */
    .stream-name {
        font-size: 0.75rem !important;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* When marquee is active on stream name */
    .stream-name.marquee-active {
        text-overflow: clip;
    }

    .stream-name.marquee-active .marquee-wrapper {
        animation: streamMarquee 12s linear infinite;
    }

    /* Smaller play button */
    #playPauseBtn {
        width: 25px !important;
        height: 25px !important;
    }

    #icon-play,
    #icon-pause {
        width: 12px !important;
        height: 12px !important;
    }

    /* Reduce spacing */
    .elementor-location-header .elementor-section:nth-child(2) {
        padding: 8px 10px !important;
    }

    /* Mobile menu adjustments */
    .hydefm-mobile-menu {
        padding: 80px 20px 20px;
    }

    .hydefm-mobile-menu .mobile-menu-items a {
        font-size: 0.75rem;
        padding: 8px 15px;
    }

    .hydefm-mobile-close {
        top: 20px;
        right: 20px;
        width: 25px;
        height: 25px;
    }
}

/* --------------------------------------------
   Prevent body scroll when menu is open
   -------------------------------------------- */
body.hydefm-menu-open {
    overflow: hidden;
}

/* ============================================
   Archive Player Responsive Styles
   ============================================ */

/* Track name container with fixed width and marquee */
#archive-player-container #archiveTrackName {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

/* Marquee animation for long titles */
@keyframes archiveMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Marquee animation for stream name */
@keyframes streamMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Stream name marquee wrapper */
.stream-name .marquee-wrapper {
    display: inline-block;
    white-space: nowrap;
}

#archive-player-container .marquee-track-name {
    display: inline-block;
    padding-right: 50px;
    animation: archiveMarquee 15s linear infinite;
}

/* Only animate if content is overflowing */
#archive-player-container .marquee-wrapper {
    display: inline-block;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    /* Archive player mobile layout */
    #archive-player-container {
        padding: 10px 15px !important;
		gap: 10px !important;
    }

    /* Fixed width for track name on mobile */
    #archive-player-container #archiveTrackName {
        max-width: calc(100vw - 130px);
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
		font-size: 0.75rem !important;
    }

    /* When marquee is active */
    #archive-player-container #archiveTrackName.marquee-active {
        text-overflow: clip;
    }

    #archive-player-container #archiveTrackName.marquee-active .marquee-wrapper {
        animation: archiveMarquee 15s linear infinite;
    }

    /* Reduce time display font size */
    #archive-player-container #archiveCurrentTime,
    #archive-player-container #archiveDuration {
        font-size: 0.75rem !important;
    }

    /* Smaller play button on mobile */
    #archive-player-container #archive-playPauseBtn {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px;
		margin-right: 0px !important;
    }

    #archive-player-container #archive-icon-play,
    #archive-player-container #archive-icon-pause {
        width: 12px !important;
        height: 12px !important;
    }

    /* Progress bar adjustments */
    #archive-player-container #archiveProgressBar {
        height: 4px !important;
    }
}

@media screen and (max-width: 480px) {
    /* Even smaller on very small screens */
    #archive-player-container #archiveTrackName {
        max-width: calc(100vw - 130px);
        font-size: 0.75rem !important;
    }

    #archive-player-container #archiveCurrentTime,
    #archive-player-container #archiveDuration {
        font-size: 0.65rem !important;
    }

    #archive-player-container {
        padding: 8px 15px !important;
    }

	#archive-player-container #archive-playPauseBtn {
		margin-right: 0px !important;
	}
}

/* ============================================
   Footer Spacing for Archive Player
   ============================================ */

/* Add bottom padding only when player is visible */
body.archive-player-active {
    padding-bottom: 115px;
}

@media screen and (max-width: 768px) {
    body.archive-player-active {
        padding-bottom: 115px;
    }
}

@media screen and (max-width: 480px) {
    body.archive-player-active {
        padding-bottom: 115px;
    }
}

/* ===============================
   Prevent iOS zoom on inputs
   =============================== */

@media screen and (max-width: 768px) {
  input[type="color"],
  input[type="date"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="email"],
  input[type="month"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  input[type="time"],
  input[type="url"],
  input[type="week"],
  select:focus,
  textarea {
    font-size: 16px !important;
  }
}
@media screen and (max-width: 768px) {
    .hydefm-mobile-menu .mobile-menu-items li {
        width: 100%;
    }

    .hydefm-mobile-menu .mobile-menu-items a {
        display: block;      /* make links block elements */
        width: 100%;         /* full width of parent li */
        padding-left: 0.75rem;  /* optional: inner spacing */
        padding-right: 0.75rem; /* optional: inner spacing */
        box-sizing: border-box;  /* include padding in width */
    }
}


/** Client's Custom CSS **/
/* Mobile horizontal slider - only on section with class homePageArchive */
@media (max-width: 767px) {
  .homePageArchive .elementor-loop-container.elementor-grid {
    display: flex !important;          /* make items in a row */
    overflow-x: auto!important;                  /* allow horizontal scroll */
    scroll-snap-type: x mandatory!important;     /* snap scrolling */
    -webkit-overflow-scrolling: touch!important; /* smooth on iOS */
    gap: 15px!important;                         /* spacing between items */
  }

  .homePageArchive .elementor-loop-container.elementor-grid > * {
    flex: 0 0 80%!important;           /* width of each "slide" */
    scroll-snap-align: start!important;
  }

  /* Optional: hide scrollbar for a cleaner look */
  .homePageArchive .elementor-loop-container.elementor-grid::-webkit-scrollbar {
    display: none!important;
  }
}

/* ============================================
   Mobile Menu - Logged-in Only Items
   ============================================ */

/* Hide logged-in-only mobile menu items by default */
.hydefm-mobile-menu .mobile-logged-in-only {
    display: none !important;
}

/* Show them when user is logged in */
body.logged-in .hydefm-mobile-menu .mobile-logged-in-only {
    display: block !important;
}

/* ============================================
   Archive Player Progress Bar / Range Slider
   ============================================ */

input#archiveProgressBar {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #fff;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    border-radius: 0;
    cursor: pointer;
}

input#archiveProgressBar:hover {
    opacity: 1;
}

/* Webkit (Chrome, Safari, Edge) - Square thumb, vertically centered */
input#archiveProgressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    cursor: pointer;
    border: none;
    border-radius: 0; /* Square shape */
    margin-top: 0px; /* Vertically center: (thumb height - track height) / 2 = (12 - 4) / 2 = 4 */
}

/* Firefox - Square thumb, vertically centered */
input#archiveProgressBar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    cursor: pointer;
    border: none;
    border-radius: 0; /* Square shape */
}

/* Firefox track styling */
input#archiveProgressBar::-moz-range-track {
    background: #fff;
    height: 4px;
    border-radius: 0;
}

/* ============================================
   MY CRATE Page - Login Status Visibility
   ============================================ */

/* Hide logged-in content by default (for non-logged-in users) */
.crate-logged-in-content {
    display: none !important;
}

/* When user is logged in: hide logged-out content, show logged-in content */
body.logged-in .crate-logged-out-content {
    display: none !important;
}

body.logged-in .crate-logged-in-content {
    display: block !important;
}

/* Hide empty loop grid (when no liked archives) on MY CRATE page */
.crate-logged-in-content .elementor-widget-loop-grid:has(.e-loop-nothing-found-message) {
    display: none !important;
}

/* Logout button styling for MY CRATE page */
.hydefm-crate-logout-wrapper {
    padding-top: 0;
    margin-top: 10px;
}

.hydefm-crate-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 10px;
    background: #000;
    color: #fff;
    border: none !important;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.hydefm-crate-logout:hover {
    background: #222;
    color: #fff;
}

.hydefm-crate-logout .logout-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
}

.hydefm-crate-logout .logout-icon svg {
    width: 100%;
    height: 100%;
}

.hydefm-crate-logout .btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.hydefm-crate-logout.loading .btn-text,
.hydefm-crate-logout.loading .logout-icon {
    display: none;
}

.hydefm-crate-logout.loading .btn-loader {
    display: inline-block;
}
