/* shared.css - Common styles used across all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-teal: #007C80;
    --primary-green: #A5C733;
    --accent-navy: #1C3556;
    --teal-light: #54C4C8;
    --green-light: #ADC854;
    --navy-medium: #2B5284;
    --bg-light: #f8fafb;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --white: #ffffff;
}

body {
    font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

.brand-name {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   LINK STYLES
   ========================================================================== */

/* Default link styles using CoachFives color palette */
a {
    color: var(--primary-teal);
    text-decoration: underline;
    text-decoration-color: rgba(0, 124, 128, 0.5); /* Semi-transparent underline */
    font-weight: 500; /* Medium weight for better visibility */
    transition: all 0.3s ease;
}

a:hover {
    color: var(--teal-light);
    text-decoration-color: var(--teal-light);
}

a:visited {
    color: var(--accent-navy);
    text-decoration-color: rgba(28, 53, 86, 0.5); /* Semi-transparent underline for visited */
}

a:visited:hover {
    color: var(--navy-medium);
    text-decoration-color: var(--navy-medium);
}

/* Focus styles for accessibility */
a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Links in dark backgrounds (like tip-box, conversation-example, etc.) */
.tip-box a,
.conversation-example a,
.teal-section a,
.green-section a {
    color: var(--green-light); /* Lighter color for better contrast on dark backgrounds */
    text-decoration-color: rgba(173, 200, 84, 0.6);
}

.tip-box a:hover,
.conversation-example a:hover,
.teal-section a:hover,
.green-section a:hover {
    color: var(--white);
    text-decoration-color: var(--white);
}

.tip-box a:visited,
.conversation-example a:visited,
.teal-section a:visited,
.green-section a:visited {
    color: rgba(173, 200, 84, 0.8); /* Slightly dimmed visited state */
}

/* Links in feature cards and lighter backgrounds */
.feature-card a {
    color: var(--primary-teal);
    font-weight: 500; /* Slightly bolder for better readability */
}

.feature-card a:hover {
    color: var(--teal-light);
}

.feature-card a:visited {
    color: var(--accent-navy);
}

/* Navigation and button-like links should maintain their current styling */
.header-nav a,
.sidebar-nav a,
.mobile-nav-menu a,
.btn {
    /* These will keep their existing styles and not inherit the default link styles */
    text-decoration: none;
}

/* Override for specific branded elements that should maintain their current styling */
.nav-link,
.mobile-nav-link,
.nav-step {
    text-decoration: none;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #378184 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--white);
}

/* Navigation Styles */
.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
}

.header-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s;
    z-index: 1001;
    display: none;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-teal);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: none;
}

.mobile-nav-menu.active {
    max-height: 400px;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s;
    border-left: 4px solid transparent;
}

.mobile-nav-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-menu a.active {
    background: rgba(165, 199, 51, 0.3);
    border-left-color: var(--primary-green);
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--green-light));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #90B025, var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 199, 51, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-secondary:hover {
    background: var(--primary-teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 128, 0.3);
}

/* Content Area */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.content-area {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .mobile-nav-menu {
        display: block;
    }
    
    .logo-image {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .logo-image {
        height: 34px;
    }
}