/* ===== UX/UI ENHANCEMENTS ===== */

/* Improved Readability */
body {
    font-size: 16px;
    line-height: 1.7;
}

/* Better Navigation UX */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-menu a {
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Improved Button UX */
.btn-primary, .btn-secondary, .btn-join {
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:active, .btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary::after, .btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:focus::after, .btn-secondary:focus::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Enhanced Hero Section UX */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1000px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    line-height: 1.5;
}

/* Better Stats Bar UX */
.stats-bar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stat-item {
    cursor: default;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Improved Card Interactions */
.membership-card {
    cursor: pointer;
    user-select: none;
}

.membership-card:focus-within {
    outline: 3px solid var(--accent-gold);
    outline-offset: 5px;
}

.card-header {
    transition: all 0.3s ease;
}

.membership-card:hover .card-header {
    transform: translateY(-5px);
}

/* Better List Readability */
.benefits-list li {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.benefits-list.premium li div {
    line-height: 1.6;
}

.benefits-list.premium strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Enhanced Form Elements */
input, select, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Better Mobile Menu UX */
.hamburger {
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger:hover span {
    background: var(--accent-gold);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu.active {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Improved Scroll Indicator */
.scroll-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(5px);
}

.scroll-indicator:hover i {
    color: #c19b2e;
}

/* Better Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Enhanced Amenity Cards */
.amenity-card {
    cursor: pointer;
}

.amenity-card h3 {
    transition: color 0.3s ease;
}

.amenity-card:hover h3 {
    color: var(--accent-gold);
}

/* Improved Footer UX */
.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    padding-left: 5px;
}

.newsletter-form {
    position: relative;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 1.25rem;
}

.newsletter-form button {
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Tooltip System */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Progress Indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.back-to-top:active {
    transform: translateY(-3px);
}

/* Improved Price Display */
.price-box {
    cursor: default;
    transition: all 0.3s ease;
}

.price-box:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

/* Better CTA Section */
.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.btn-large {
    font-size: 1.2rem;
    padding: 1.5rem 3.5rem;
}

.btn-large:hover {
    transform: translateY(-5px);
}

/* Enhanced Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-gold);
    color: var(--primary-color);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Improved Card Footer */
.card-footer {
    padding: 2rem;
}

.card-footer a {
    display: block;
    width: 100%;
    text-align: center;
}

/* Better Commitment Box */
.commitment-box {
    line-height: 1.8;
}

.commitment-box p {
    margin-bottom: 1.5rem;
}

/* Enhanced Social Links */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:focus {
    outline: 2px solid var(--accent-gold);
}

/* Improved Financing Options */
.financing-option {
    cursor: default;
}

.financing-option h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.financing-option p {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Better Mobile Experience */
@media (max-width: 968px) {
    body {
        font-size: 15px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    .membership-card {
        margin-bottom: 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .nav-menu {
        padding: 3rem 2rem;
    }
    
    .nav-menu li {
        margin-bottom: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.75rem 0;
    }
}

@media (max-width: 600px) {
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .hero-tagline {
        margin-bottom: 2rem;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 1.25rem 2.5rem;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Improved Touch Targets */
@media (hover: none) and (pointer: coarse) {
    .btn-primary, .btn-secondary, .btn-join {
        min-height: 48px;
        padding: 1rem 2rem;
    }
    
    .nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .social-links a {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator,
    .hero-particles,
    .premium-badge,
    .stats-bar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
    
    .membership-card {
        border: 2px solid var(--primary-color);
    }
}

/* Dark Mode Preparation (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
