/* Custom CSS for Elderink Bootstrap Theme */

/* Smooth transitions */
a, .btn, .nav-link {
    transition: all 0.3s ease;
}

/* Custom navbar styling */
.site-header {
    background: var(--elderink-primary);
    transition: all 0.3s ease;
}

.site-header.sticky-top {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--elderink-primary) 0%, var(--elderink-secondary) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-title a {
    color: var(--elderink-dark);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--elderink-primary);
}

/* Buttons */
.btn-primary {
    background-color: var(--elderink-primary);
    border-color: var(--elderink-primary);
}

.btn-primary:hover {
    background-color: var(--elderink-secondary);
    border-color: var(--elderink-secondary);
}

/* Footer */
.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
}

/* Membership cards */
.membership-card {
    border-left: 4px solid var(--elderink-primary);
}

.membership-card.active {
    border-left-color: #28a745;
}

.membership-card.expired {
    border-left-color: #dc3545;
}

.membership-card.expiring {
    border-left-color: #ffc107;
}

/* Account dashboard */
.account-sidebar {
    background: var(--elderink-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.account-menu {
    list-style: none;
    padding: 0;
}

.account-menu li {
    margin-bottom: 0.5rem;
}

.account-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--elderink-dark);
    text-decoration: none;
    border-radius: 0.25rem;
}

.account-menu a:hover,
.account-menu a.active {
    background: white;
    color: var(--elderink-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* WooCommerce overrides */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--elderink-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--elderink-dark);
    text-decoration: none;
    border-radius: 0.25rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: white;
    color: var(--elderink-primary);
}

/* Page transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-main {
    animation: fadeIn 0.5s ease;
}
