/* ============================================
   UNIFIED BUTTON STYLES - Charles County Surgical Arts
   ============================================
   This file contains all button styling for the website.
   All pages should inherit these styles for consistency.
   ============================================ */

/* ============================================
   CSS VARIABLES - Theme Colors
   ============================================ */
:root {
    /* Primary Button Colors - Dark Teal */
    --btn-primary-start: #5A7979;
    --btn-primary-end: #4a9997;
    --btn-primary-hover-start: #4a9997;
    --btn-primary-hover-end: #3d8785;
    
    /* Secondary Button Colors */
    --btn-secondary-bg: transparent;
    --btn-secondary-border: #5A7979;
    --btn-secondary-text: #5A7979;
    --btn-secondary-hover-bg: #5A7979;
    --btn-secondary-hover-text: white;
    
    /* Button Shadows */
    --btn-shadow: 0 4px 15px rgba(94, 170, 168, 0.3);
    --btn-shadow-hover: 0 6px 20px rgba(94, 170, 168, 0.4);
    --btn-shadow-lg: 0 8px 25px rgba(94, 170, 168, 0.5);
    
    /* Legacy color references for backwards compatibility */
    --primary-accent: #5A7979;
    --primary-color: #5A7979;
    --highlight-color: #4a9997;
    
    /* Text Colors */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
}

/* ============================================
   BASE BUTTON STYLES
   ============================================ */
.btn,
.cta-btn {
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    /* Default to primary style */
    background: linear-gradient(100deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    color: white;
    box-shadow: var(--btn-shadow);
}

.btn:hover,
.cta-btn:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover-start) 0%, var(--btn-primary-hover-end) 100%);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
    color: white;
    text-decoration: none;
}

.btn:active,
.cta-btn:active {
    transform: translateY(0);
}

.btn:focus,
.cta-btn:focus {
    outline: none;
    box-shadow: var(--btn-shadow-hover), 0 0 0 3px rgba(90, 121, 121, 0.3);
}

/* ============================================
   PRIMARY BUTTON VARIATIONS
   ============================================ */
.btn-primary,
.btn-primary-cta,
.cta-btn-primary {
    background: linear-gradient(100deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    color: white;
    box-shadow: var(--btn-shadow);
}

.btn-primary:hover,
.btn-primary-cta:hover,
.cta-btn-primary:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover-start) 0%, var(--btn-primary-hover-end) 100%);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
    color: white;
}

/* ============================================
   SECONDARY BUTTON (Outline Style)
   ============================================ */
.btn-secondary,
.btn-outline {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 2px solid var(--btn-secondary-border);
    box-shadow: none;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--btn-secondary-hover-bg);
    color: var(--btn-secondary-hover-text);
    border-color: var(--btn-secondary-hover-bg);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow);
}

/* ============================================
   HERO CTA BUTTONS
   ============================================ */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.hero-cta-primary {
    background: linear-gradient(100deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    color: white;
    box-shadow: var(--btn-shadow-lg);
}

.hero-cta-primary:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover-start) 0%, var(--btn-primary-hover-end) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(94, 170, 168, 0.5);
    color: white;
}

.hero-cta-secondary {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================
   SUBMIT BUTTONS (Forms)
   ============================================ */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(100deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--btn-shadow);
    font-family: inherit;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover-start) 0%, var(--btn-primary-hover-end) 100%);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

.submit-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
    box-shadow: none;
}

.submit-btn:disabled:hover {
    background: #cbd5e1;
    transform: none;
    box-shadow: none;
}

.submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================
   VIDEO BUTTONS
   ============================================ */
.btn-video {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(100deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
}

.btn-video:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover-start) 0%, var(--btn-primary-hover-end) 100%);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
    color: white;
}

/* ============================================
   TAB BUTTONS
   ============================================ */
.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background-color: #e2e8f0;
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-btn:hover {
    background-color: #cbd5e1;
}

.tab-btn.active {
    background: linear-gradient(100deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    color: white;
    box-shadow: var(--btn-shadow);
}

/* ============================================
   TIME SLOT BUTTONS
   ============================================ */
.time-slot-btn {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--text-dark);
}

.time-slot-btn:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.time-slot-btn.selected {
    background: linear-gradient(100deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    color: white;
    border-color: var(--btn-primary-start);
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(100deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--btn-shadow);
    font-family: inherit;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover-start) 0%, var(--btn-primary-hover-end) 100%);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

/* ============================================
   BACK/NAVIGATION BUTTONS
   ============================================ */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-accent);
    border: 2px solid var(--primary-accent);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow);
}

/* ============================================
   CLOSE BUTTONS (Modals, Alerts)
   ============================================ */
.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: inherit;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ============================================
   BUTTON SIZE VARIATIONS
   ============================================ */
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* ============================================
   BUTTON WITH ICONS
   ============================================ */
.btn i,
.btn-primary i,
.submit-btn i {
    font-size: 1em;
}

/* ============================================
   NAVIGATION BUTTONS (Last Child - Request Appointment)
   ============================================ */
.main-nav > ul > li:last-child > a {
    background: linear-gradient(100deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%) !important;
    color: white !important;
    padding: 0.65rem 1.35rem !important;
    border-radius: 50px !important;
    box-shadow: var(--btn-shadow);
    transition: all 0.3s ease !important;
}

.main-nav > ul > li:last-child > a:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover-start) 0%, var(--btn-primary-hover-end) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--btn-shadow-hover) !important;
}

/* ============================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .btn,
    .cta-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .hero-cta-btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
    
    .btn-xl {
        padding: 1.1rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .btn,
    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }
}
