﻿/**
 * Global Styles â€
 */
/* ============================================
   HEADER EXTENSIONS
   ============================================ */

.fp-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 16, 20, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--fp-border-subtle);
    animation: slideDown 0.3s ease;
}

.fp-header.sticky.hidden {
    transform: translateY(-100%);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Cart Count Badge */
.fp-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--fp-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-cart-btn {
    position: relative;
}

/* User Dropdown */
.fp-user-menu {
    position: relative;
}

.fp-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: var(--fp-bg-elevated);
    border: 1px solid var(--fp-border-subtle);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-lg);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.fp-user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fp-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--fp-spacing-md);
    padding: var(--fp-spacing-lg);
    border-bottom: 1px solid var(--fp-border-subtle);
}

.fp-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.fp-user-info {
    display: flex;
    flex-direction: column;
}

.fp-user-name {
    font-weight: 700;
    color: var(--fp-text-primary);
}

.fp-user-email {
    font-size: 0.875rem;
    color: var(--fp-text-secondary);
}

.fp-user-dropdown-menu {
    list-style: none;
    padding: var(--fp-spacing-sm) 0;
}

.fp-user-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: var(--fp-spacing-sm);
    padding: var(--fp-spacing-md) var(--fp-spacing-lg);
    color: var(--fp-text-primary);
    transition: background-color 0.2s ease;
}

.fp-user-dropdown-menu li a:hover {
    background-color: var(--fp-bg-secondary);
    color: var(--fp-primary);
}

.fp-user-dropdown-divider {
    height: 1px;
    background-color: var(--fp-border-subtle);
    margin: var(--fp-spacing-sm) 0;
}

.fp-logout-link {
    color: var(--fp-red) !important;
}

.fp-logout-link:hover {
    background-color: rgba(255, 75, 75, 0.1) !important;
}

/* Search Overlay */
.fp-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.fp-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fp-search-container {
    width: 100%;
    max-width: 700px;
    padding: var(--fp-spacing-lg);
    position: relative;
}

.fp-search-close {
    position: absolute;
    top: -60px;
    left: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fp-search-close:hover {
    transform: rotate(90deg);
}

.fp-search-form {
    display: flex;
    gap: var(--fp-spacing-md);
}

.fp-search-input {
    flex: 1;
    padding: 20px 30px;
    font-size: 1.25rem;
    border: none;
    border-radius: var(--fp-radius-full);
    background-color: white;
    color: var(--fp-text-primary);
}

.fp-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(88, 204, 2, 0.3);
}

/* Mobile Menu */
.fp-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--fp-bg-elevated);
    border-left: 1px solid var(--fp-border-subtle);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.fp-mobile-menu.active {
    right: 0;
}

.fp-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--fp-spacing-lg);
    border-bottom: 1px solid var(--fp-border-subtle);
}

.fp-mobile-menu-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.fp-mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--fp-text-secondary);
}

.fp-mobile-nav-menu {
    list-style: none;
    padding: var(--fp-spacing-lg);
    flex: 1;
}

.fp-mobile-nav-menu li {
    margin-bottom: var(--fp-spacing-sm);
}

.fp-mobile-nav-menu a {
    display: block;
    padding: var(--fp-spacing-md);
    border-radius: var(--fp-radius-md);
    color: var(--fp-text-primary);
    font-weight: 600;
    transition: all 0.2s ease;
}

.fp-mobile-nav-menu a:hover {
    background-color: var(--fp-gray-lighter);
    color: var(--fp-primary);
}

.fp-mobile-menu-footer {
    padding: var(--fp-spacing-lg);
    border-top: 1px solid var(--fp-border-subtle);
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   FOOTER EXTENSIONS
   ============================================ */

.fp-newsletter {
    margin-top: var(--fp-spacing-lg);
}

.fp-newsletter p {
    font-weight: 600;
    margin-bottom: var(--fp-spacing-sm);
    color: white;
}

.fp-newsletter-form {
    display: flex;
    gap: var(--fp-spacing-sm);
}

.fp-newsletter-input-group {
    display: flex;
    gap: var(--fp-spacing-sm);
    flex: 1;
}

.fp-newsletter-input-group .fp-form-input {
    flex: 1;
}

/* Back to Top Button */
.fp-back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--fp-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--fp-shadow-md);
}

.fp-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fp-back-to-top:hover {
    background-color: var(--fp-primary-dark);
    transform: translateY(-5px);
}

/* Loading Overlay */
.fp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.fp-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fp-loading-spinner {
    text-align: center;
}

.fp-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--fp-gray-light);
    border-top-color: var(--fp-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--fp-spacing-md);
}

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

.fp-feature-card,
.fp-trainer-card,
.fp-plan-card,
.fp-video-card,
.fp-testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fp-feature-card.animated,
.fp-trainer-card.animated,
.fp-plan-card.animated,
.fp-video-card.animated,
.fp-testimonial-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.fp-feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.fp-feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.fp-feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.fp-feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

.fp-feature-card:nth-child(5) {
    transition-delay: 0.5s;
}

.fp-feature-card:nth-child(6) {
    transition-delay: 0.6s;
}
/* ============================================
   NOTIFICATION BELL
   ============================================ */

.fp-notif-wrap {
    position: relative;
}

.fp-notif-bell {
    position: relative;
}

.fp-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    animation: fp-notif-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes fp-notif-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.fp-notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 360px;
    max-height: 480px;
    background: var(--fp-bg-elevated, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.fp-notif-dropdown.fp-notif-open {
    display: flex;
}

.fp-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fp-notif-title {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.fp-notif-mark-all {
    background: none;
    border: none;
    color: var(--fp-primary, #58cc02);
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.fp-notif-mark-all:hover {
    opacity: 0.7;
}

.fp-notif-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.fp-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

.fp-notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.fp-notif-unread {
    background: rgba(99, 102, 241, 0.06);
}

.fp-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.fp-notif-content {
    flex: 1;
    min-width: 0;
}

.fp-notif-item-title {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 13px;
    margin-bottom: 2px;
}

.fp-notif-item-msg {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-notif-time {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 3px;
}

.fp-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fp-primary, #58cc02);
    flex-shrink: 0;
    align-self: center;
}

.fp-notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.fp-notif-empty i {
    font-size: 28px;
    opacity: 0.3;
}

.fp-notif-loading {
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
}

@media (max-width: 640px) {
    .fp-notif-dropdown {
        width: 300px;
        right: -50px;
    }
}
