/**
 * HydeFM User Management Styles
 * Version: 1.6.5
 * Matches HydeFM site design - no border radius, blue/white theme
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --hydefm-primary: #0000ff;
    --hydefm-primary-dark: #0000cc;
    --hydefm-text: #ffffff;
    --hydefm-text-dark: #000000;
    --hydefm-border: #333333;
    --hydefm-bg: #000000;
    --hydefm-bg-light: #111111;
    --hydefm-error: #ff4444;
    --hydefm-success: #00cc66;
    --hydefm-heart: #ff4757;
}

/* ==========================================================================
   My Account Dropdown Menu
   ========================================================================== */

/* Parent menu item with dropdown - fix icon alignment */
.menu-item-has-children > a.elementor-item {
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row !important;
}

/* Hide or style the dropdown indicator icon */
.menu-item-has-children .sub-arrow,
.menu-item-has-children > a .sub-arrow,
.menu-item-has-children > a.elementor-item::after {
    display: none !important;
}

/* If there's a separate dropdown icon element, hide it or style inline */
.menu-item-has-children .elementor-menu-toggle,
.menu-item-has-children > .dropdown-toggle {
    display: none !important;
}

/* Parent menu item - extend hover area downward */
.menu-item-has-children {
    position: relative !important;
    z-index: 99999999 !important;
}

.menu-item-has-children::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    height: 15px !important;
    background: transparent !important;
}


/* Dropdown container - ensure hidden by default */
.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: auto !important;
    background: var(--hydefm-primary) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 120px !important;
    margin: 0 !important;
    z-index: 99999999 !important;
}

/* Show dropdown on hover - ONLY for logged-in users */
body.logged-in .menu-item-has-children:hover > .sub-menu.elementor-nav-menu--dropdown,
body.logged-in .menu-item-has-children.elementor-active > .sub-menu.elementor-nav-menu--dropdown {
    display: block !important;
}

/* Dropdown items - target li directly since they don't have .menu-item class */
.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Dropdown links - target both .menu-item a and direct li a */
.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown > li > a,
.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown .elementor-sub-item {
    display: block !important;
    margin-left: 0px !important;
    padding: 12px 20px !important;
    font-family: "Helvetica", Helvetica !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    text-decoration: none !important;
    color: var(--hydefm-text) !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    border: none !important;
    text-align: left !important;
}

.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown > li > a:hover,
.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown .elementor-sub-item:hover {
    background: var(--hydefm-bg) !important;
    color: var(--hydefm-text) !important;
}

/* Hide default Elementor dropdown arrow/caret styling */
.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown::before,
.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown::after {
    display: none !important;
}

/* Active/current menu item in dropdown */
.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown .current-menu-item > a,
.menu-item-has-children .sub-menu.elementor-nav-menu--dropdown > li.current-menu-item > a {
    background: var(--hydefm-bg) !important;
    color: var(--hydefm-text) !important;
}

/* Global page loader overlay */
.hydefm-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.hydefm-page-loader .loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top-color: var(--hydefm-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Global - No underlines, No borders
   ========================================================================== */
.hydefm-auth-container a,
.hydefm-form-container a,
.hydefm-logged-in-message a,
.hydefm-user-likes a,
.hydefm-modal a {
    text-decoration: none !important;
    border: none !important;
}

.hydefm-auth-container a:hover,
.hydefm-form-container a:hover,
.hydefm-logged-in-message a:hover,
.hydefm-user-likes a:hover,
.hydefm-modal a:hover {
    text-decoration: none !important;
    border: none !important;
}

.hydefm-auth-container button,
.hydefm-form-container button,
.hydefm-logged-in-message button,
.hydefm-modal button {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0px !important;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.hydefm-form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: var(--hydefm-primary);
}

.hydefm-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hydefm-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hydefm-form-field label {
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--hydefm-text);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hydefm-form-field input[type="text"],
.hydefm-form-field input[type="email"],
.hydefm-form-field input[type="password"] {
    padding: 12px 16px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    border: none !important;
    border-bottom: 1px solid var(--hydefm-text) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--hydefm-text) !important;
    box-shadow: none !important;
    outline: none !important;
}

.hydefm-form-field input:focus {
    outline: none !important;
    border: none !important;
    border-bottom: 1px solid var(--hydefm-text) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hydefm-form-field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hydefm-form-field .field-hint {
    font-family: "Helvetica", Helvetica;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.hydefm-checkbox-field {
    flex-direction: row;
    align-items: center;
}

.hydefm-checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    cursor: pointer;
    text-transform: none;
}

.hydefm-checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--hydefm-text);
}

/* Form Messages */
.hydefm-form-message {
    padding: 12px 16px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: none;
}

.hydefm-form-message.error {
    display: block;
    background: var(--hydefm-text);
    color: var(--hydefm-error);
}

.hydefm-form-message.success {
    display: block;
    background: var(--hydefm-text);
    color: var(--hydefm-success);
}

/* Form Links */
.hydefm-form-links {
    text-align: center;
}

.hydefm-form-links a {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: -1px;
    background: var(--hydefm-text) !important;
    color: var(--hydefm-primary) !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    border: none !important;
}

.hydefm-form-links a:hover {
    background: var(--hydefm-bg) !important;
    color: var(--hydefm-text) !important;
    text-decoration: none !important;
}

.hydefm-form-links .separator {
    margin: 0 8px;
    color: var(--hydefm-text);
}

.hydefm-link-separator {
    margin: 0 10px;
    color: var(--hydefm-text);
}

/* ==========================================================================
   Forgot Password
   ========================================================================== */
.hydefm-forgot-password-link {
    margin-top: 0px;
    text-align: center;
}

.hydefm-forgot-password-link a,
.hydefm-back-to-login a {
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: -0.5px;
    color: var(--hydefm-text) !important;
    transition: all 0.2s ease;
}

.hydefm-forgot-password-link a:hover,
.hydefm-back-to-login a:hover {
    text-decoration: underline !important;
}

.hydefm-forgot-password-form {
    padding: 0px 5px;
}

.hydefm-form-description {
    margin: 0;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--hydefm-text);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
}

.hydefm-back-to-login {
    margin-top: 0px;
    text-align: center;
}

/* ==========================================================================
   Auth Container with Tabs
   ========================================================================== */
.hydefm-auth-container {
    max-width: 400px;
    margin: 0 auto;
    background: var(--hydefm-primary);
}

.hydefm-auth-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
}

.hydefm-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: var(--hydefm-text) !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--hydefm-primary) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-decoration: none !important;
}

.hydefm-tab-btn:hover {
    background: var(--hydefm-bg) !important;
    color: var(--hydefm-text) !important;
}

.hydefm-tab-btn.active {
    background: var(--hydefm-bg) !important;
    color: var(--hydefm-text) !important;
}

.hydefm-tab-content {
    display: none;
    padding: 20px 30px;
}

.hydefm-tab-content.active {
    display: block;
}

.hydefm-btn-full {
    width: 100%;
}

.hydefm-logged-in-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.hydefm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    border: none !important;
    border-width: 0 !important;
    border-radius: 0;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: var(--hydefm-text) !important;
    color: var(--hydefm-primary) !important;
    position: relative;
}

.hydefm-btn:hover {
    background: var(--hydefm-bg) !important;
    color: var(--hydefm-text) !important;
    text-decoration: none !important;
}

.hydefm-btn-primary {
    background: var(--hydefm-text) !important;
    color: var(--hydefm-primary) !important;
}

.hydefm-btn-primary:hover {
    background: var(--hydefm-bg) !important;
    color: var(--hydefm-text) !important;
}

.hydefm-btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.hydefm-btn.loading {
    pointer-events: none;
    background: var(--hydefm-text) !important;
    color: var(--hydefm-primary) !important;
}

.hydefm-btn.loading .btn-text {
    opacity: 0;
}

.hydefm-btn .btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--hydefm-primary);
    border-radius: 50%;
}

.hydefm-btn.loading .btn-loader {
    display: block;
    animation: spin 0.8s linear infinite;
}

/* Logout link loading state */
a.hydefm-btn.loading,
.hydefm-logout-link.loading {
    pointer-events: none;
    position: relative;
}

a.hydefm-btn.loading .btn-text,
.hydefm-logout-link.loading .btn-text {
    opacity: 0;
}

a.hydefm-btn .btn-loader,
.hydefm-logout-link .btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--hydefm-primary);
    border-radius: 50%;
}

a.hydefm-btn.loading .btn-loader,
.hydefm-logout-link.loading .btn-loader {
    display: block;
    animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Like Button
   ========================================================================== */
.hydefm-like-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 6px !important;
    margin-top: -5px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--hydefm-text);
}

.e-loop-item button.hydefm-like-btn {
    padding: 0px !important;
    margin: 0 15px !important;
}

.hydefm-like-btn:hover {
    background: transparent !important;
}

.hydefm-like-btn .heart-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s ease;
}

.hydefm-like-btn .heart-icon:hover {
    transform: scale(1.2);
}

.hydefm-like-btn .heart-icon img {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

/* Show inactive heart by default, hide active */
.hydefm-like-btn .heart-icon .heart-inactive {
    display: block;
}

.hydefm-like-btn .heart-icon .heart-active {
    display: none;
}

/* When liked, show active heart, hide inactive */
.hydefm-like-btn.liked .heart-icon .heart-inactive {
    display: none;
}

.hydefm-like-btn.liked .heart-icon .heart-active {
    display: block;
}

.hydefm-like-btn.liked {
    background: transparent !important;
    color: var(--hydefm-text);
}

.hydefm-like-btn.liked:hover {
    background: transparent !important;
}

.hydefm-like-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.hydefm-like-btn.pulse .heart-icon {
    animation: pulse 0.3s ease;
}

.hydefm-like-btn .like-count {
    font-weight: 900;
    color: var(--hydefm-text);
}

/* Container for positioning - align right */
.archive-actions,
.hydefm-like-wrapper {
    display: flex;
    justify-content: flex-end;
}

/* Elementor shortcode widget - align like button to right */
.elementor-shortcode:has(.hydefm-like-btn) {
    display: flex;
    justify-content: flex-end;
}

/* Fallback for older browsers - target parent column */
.elementor-widget-shortcode:has(.hydefm-like-btn) {
    width: 100%;
}

.elementor-widget-shortcode:has(.hydefm-like-btn) .elementor-widget-container {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   User Menu
   ========================================================================== */
.hydefm-user-menu {
    position: relative;
    display: inline-block;
}

.hydefm-user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--hydefm-text);
}

.hydefm-user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hydefm-user-menu-toggle .user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 0;
}

.hydefm-user-menu-toggle .user-name {
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--hydefm-text);
    text-decoration: none !important;
}

.hydefm-user-menu-toggle .dropdown-arrow {
    font-size: 10px;
    color: var(--hydefm-text);
    transition: transform 0.2s ease;
}

.hydefm-user-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.hydefm-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--hydefm-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    list-style: none;
    padding: 10px;
    margin: 0;
    z-index: 1000;
}

.hydefm-user-menu.open .hydefm-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hydefm-user-dropdown li {
    margin: 0;
    padding: 0;
}

.hydefm-user-dropdown a {
    display: block;
    padding: 12px 16px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: -1px;
    background: var(--hydefm-text);
    color: var(--hydefm-primary);
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.hydefm-user-dropdown li:last-child a {
    margin-bottom: 0;
}

.hydefm-user-dropdown a:hover {
    background: var(--hydefm-bg);
    color: var(--hydefm-text);
    text-decoration: none !important;
}

/* Auth Links (not logged in) */
.hydefm-auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hydefm-login-link {
    display: inline-block;
    padding: 12px 24px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: -1px;
    background: var(--hydefm-text);
    color: var(--hydefm-primary);
    transition: all 0.2s ease;
}

.hydefm-login-link:hover {
    background: var(--hydefm-bg);
    color: var(--hydefm-text);
    text-decoration: none !important;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.hydefm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.hydefm-modal.open {
    opacity: 1;
    visibility: visible;
}

.hydefm-modal-content {
    position: relative;
    background: var(--hydefm-primary);
    padding: 50px 30px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.hydefm-modal.open .hydefm-modal-content {
    transform: scale(1);
}

.hydefm-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: var(--hydefm-text);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hydefm-modal-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.hydefm-modal-body p {
    margin-bottom: 20px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--hydefm-text);
}

/* Modal with auth form */
.hydefm-modal-auth {
    padding: 0;
    max-width: 420px;
}

.hydefm-modal-auth .hydefm-modal-close {
    z-index: 10;
    top: 15px;
    right: 15px;
    color: var(--hydefm-text);
    background: var(--hydefm-primary) !important;
}

.hydefm-modal-auth .hydefm-auth-container {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.hydefm-modal-auth .hydefm-auth-tabs {
    padding-top: 50px;
}

.hydefm-modal-auth .hydefm-form-field {
    text-align: left;
}

.hydefm-modal-auth .hydefm-form-field label {
    text-align: left;
}

/* ==========================================================================
   User Likes List
   ========================================================================== */
.hydefm-user-likes {
    margin: 20px 0;
}

.hydefm-likes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hydefm-likes-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--hydefm-primary);
    transition: background 0.2s ease;
}

.hydefm-likes-item:hover {
    background: rgba(0, 0, 200, 1);
}

.hydefm-likes-item > a {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    text-decoration: none !important;
    color: inherit;
}

.hydefm-likes-item .like-item-thumbnail {
    width: 60px;
    height: 60px;
    overflow: hidden;
    flex-shrink: 0;
}

.hydefm-likes-item .like-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hydefm-likes-item .like-item-content h4 {
    margin: 0 0 4px 0;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--hydefm-text);
    text-decoration: none !important;
}

.hydefm-likes-item .like-item-date {
    font-family: "Helvetica", Helvetica;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Likes Message (for Elementor Loop Grid)
   ========================================================================== */
.hydefm-likes-message {
    width: 100%;
    text-align: center;
    padding: 60px 30px;
    background: var(--hydefm-primary);
}

.hydefm-likes-message p {
    margin: 0 0 25px 0 !important;
    font-family: "Helvetica", Helvetica;
    font-size: 1rem;
    font-weight: 900;
    color: var(--hydefm-text);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hydefm-likes-message .hydefm-btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: -1px;
    background: var(--hydefm-text) !important;
    color: var(--hydefm-primary) !important;
    transition: all 0.2s ease;
    border: none !important;
}

.hydefm-likes-message .hydefm-btn:hover {
    background: var(--hydefm-bg) !important;
    color: var(--hydefm-text) !important;
    text-decoration: none !important;
}

/* Empty States */
.hydefm-no-likes,
.hydefm-login-required,
.hydefm-registration-disabled {
    text-align: center;
    padding: 40px 20px;
    background: var(--hydefm-primary);
}

.hydefm-no-likes p,
.hydefm-login-required p,
.hydefm-registration-disabled p {
    margin-bottom: 20px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--hydefm-text);
}

.hydefm-no-likes a,
.hydefm-login-required a,
.hydefm-registration-disabled a {
    display: inline-block;
    padding: 12px 24px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: -1px;
    background: var(--hydefm-text);
    color: var(--hydefm-primary) !important;
    transition: all 0.2s ease;
}

.hydefm-no-likes a:hover,
.hydefm-login-required a:hover,
.hydefm-registration-disabled a:hover {
    background: var(--hydefm-bg);
    color: var(--hydefm-text) !important;
    text-decoration: none !important;
}

/* Logged In Message - Blue background */
.hydefm-logged-in-message {
    text-align: center;
    padding: 40px 20px;
    background: var(--hydefm-primary);
}

.hydefm-logged-in-message p {
    margin-bottom: 20px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--hydefm-text);
}

.hydefm-logged-in-message .hydefm-btn,
.hydefm-logged-in-actions .hydefm-btn {
    background: var(--hydefm-text) !important;
    color: var(--hydefm-primary) !important;
    text-decoration: none !important;
    border: none !important;
}

.hydefm-logged-in-message .hydefm-btn:hover,
.hydefm-logged-in-actions .hydefm-btn:hover {
    background: var(--hydefm-bg) !important;
    color: var(--hydefm-text) !important;
    text-decoration: none !important;
}

.hydefm-logged-in-message a,
.hydefm-logged-in-actions a {
    text-decoration: none !important;
    border: none !important;
}

/* ==========================================================================
   Liked Archives Grid/Loop
   ========================================================================== */
.hydefm-liked-archives-loop {
    padding: 20px 0;
}

.hydefm-archives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hydefm-liked-archives-loop.columns-2 .hydefm-archives-grid {
    grid-template-columns: repeat(2, 1fr);
}

.hydefm-liked-archives-loop.columns-4 .hydefm-archives-grid {
    grid-template-columns: repeat(4, 1fr);
}

.hydefm-archive-item {
    background: var(--hydefm-primary);
    position: relative;
}

.hydefm-archive-item .archive-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.hydefm-archive-item .archive-thumbnail {
    position: relative;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
}

.hydefm-archive-item .archive-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hydefm-archive-item:hover .archive-thumbnail img {
    transform: scale(1.05);
}

.hydefm-archive-item .archive-content {
    padding: 15px;
}

.hydefm-archive-item .archive-title {
    margin: 0 0 8px 0;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--hydefm-text);
    text-decoration: none !important;
}

.hydefm-archive-item .archive-meta {
    font-family: "Helvetica", Helvetica;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.hydefm-archive-item .archive-actions {
    padding: 0 15px 15px;
}

/* Pagination */
.hydefm-pagination {
    margin-top: 30px;
    text-align: center;
}

.hydefm-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-decoration: none !important;
    background: var(--hydefm-text);
    color: var(--hydefm-primary);
    transition: all 0.2s ease;
}

.hydefm-pagination .page-numbers:hover,
.hydefm-pagination .page-numbers.current {
    background: var(--hydefm-bg);
    color: var(--hydefm-text);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hydefm-form-container {
        padding: 20px;
        margin: 0 15px;
    }

    .hydefm-auth-container {
        margin: 0 15px;
    }

    .hydefm-auth-tabs {
        padding: 20px !important;
    }

    .hydefm-modal-auth .hydefm-modal-close {
        top: 0px;
        right: -9px;
        background: transparent !important;
    }

    .hydefm-tab-content {
        padding: 20px;
    }

    .hydefm-tab-btn {
        padding: 14px 16px;
    }

    .hydefm-user-menu-toggle .user-name {
        display: none;
    }

    .hydefm-likes-item {
        flex-wrap: wrap;
    }

    .hydefm-likes-item > a {
        width: 100%;
    }

    .hydefm-likes-item .hydefm-like-btn {
        margin-left: auto;
    }

    .hydefm-archives-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hydefm-liked-archives-loop.columns-4 .hydefm-archives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hydefm-form-field input[type="text"],
    .hydefm-form-field input[type="email"],
    .hydefm-form-field input[type="password"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .hydefm-like-btn {
        font-size: 13px;
    }

    .hydefm-like-btn .heart-icon img {
        width: 18px;
        height: 18px;
    }

    .hydefm-archives-grid {
        grid-template-columns: 1fr;
    }

    .hydefm-liked-archives-loop.columns-2 .hydefm-archives-grid,
    .hydefm-liked-archives-loop.columns-4 .hydefm-archives-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Password Reset Success
   ========================================================================== */
.hydefm-reset-success {
    text-align: center;
    padding: 40px 20px;
}

.hydefm-reset-success .hydefm-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--hydefm-primary);
    color: var(--hydefm-text);
    font-size: 40px;
    font-weight: 700;
    line-height: 80px;
    text-align: center;
}

.hydefm-reset-success h3 {
    font-family: "Helvetica", Helvetica;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--hydefm-text);
    margin: 0 0 16px;
}

.hydefm-reset-success p {
    font-family: "Helvetica", Helvetica;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--hydefm-text);
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: normal;
}

.hydefm-reset-success .hydefm-btn {
    margin-top: 24px;
    display: inline-block;
}
