/**
 * Frontend Common CSS
 * Shared styles for all front-end pages
 * Professional Blue (#106EBE) and Mint (#0FFCBE) color palette
 */

/* ============================================
   CSS VARIABLES - Professional Color Palette
   ============================================ */
:root {
    /* Primary Colors - Professional Blue Theme */
    --primary-blue: #106EBE;
    --primary-blue-dark: #0d5a9a;
    --primary-blue-light: #1a7fd4;
    --primary-color: #106EBE;
    --primary-dark: #0d5a9a;
    --primary-light: #1a7fd4;
    
    /* Accent Colors - Mint Theme */
    --accent-mint: #0FFCBE;
    --accent-mint-dark: #0cc99f;
    --accent-mint-light: #2fffd0;
    --secondary-color: #0FFCBE;
    --secondary-dark: #0cc99f;
    --secondary-light: #2fffd0;
    
    /* Legacy color mappings for backward compatibility */
    --accent-olive: #106EBE;
    --accent-rose: #0FFCBE;
    --accent-green: #0FFCBE;
    --accent-yellow: #f59e0b;
    
    /* Neutral Colors */
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: rgba(0, 0, 0, 0.1);
    
    /* Status Colors */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   COMMON PAGE TITLE STYLES
   ============================================ */
.page-title {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-mint), var(--primary-blue));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.page-title .heading {
    padding: 40px 0 !important;
    position: relative;
    z-index: 1;
}

.page-title .heading h1 {
    color: white !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.page-title nav {
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding: 15px 0 !important;
    backdrop-filter: blur(10px);
}

.page-title nav a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.page-title nav a:hover {
    color: var(--accent-mint) !important;
}

.page-title nav ol li.current {
    color: var(--accent-mint) !important;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   COMMON SECTION STYLES
   ============================================ */
.section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* ============================================
   COMMON CARD STYLES
   ============================================ */
.common-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.common-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.card-header-modern {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.card-body-modern {
    padding: 1.5rem 0;
}

/* ============================================
   COMMON BUTTON STYLES
   ============================================ */
.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 110, 190, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 110, 190, 0.4);
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    color: white;
}

.btn-modern-secondary {
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-mint-dark));
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--accent-mint-dark), var(--accent-mint));
    color: var(--text-dark);
}

.btn-modern-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern-outline:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   COMMON FORM STYLES
   ============================================ */
.form-control-modern {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(16, 110, 190, 0.1);
}

.form-label-modern {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ============================================
   COMMON TRAINER/COURSE ITEM STYLES
   ============================================ */
.trainers .course-item,
.trainers .member {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.trainers .course-item:hover,
.trainers .member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.trainers .course-item .category a,
.trainers .member .category a {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.trainers .course-item .category a:hover,
.trainers .member .category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 110, 190, 0.3);
}

.trainers .course-item h3 a,
.trainers .member h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.trainers .course-item h3 a:hover,
.trainers .member h3 a:hover {
    color: var(--primary-blue);
}

.trainer-profile img {
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.trainer-profile:hover img {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.trainer-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.trainer-link:hover {
    color: var(--primary-blue);
}

/* ============================================
   COMMON PAGINATION STYLES
   ============================================ */
.pagination .page-link {
    color: var(--primary-blue);
    border-color: var(--border-color);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-color: var(--primary-blue);
    color: white;
}

/* ============================================
   COMMON UTILITY CLASSES
   ============================================ */
.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-accent-mint {
    color: var(--accent-mint) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-accent-mint {
    background-color: var(--accent-mint) !important;
}

.border-primary-blue {
    border-color: var(--primary-blue) !important;
}

.shadow-modern {
    box-shadow: var(--shadow-md) !important;
}

.shadow-modern-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ============================================
   COMMON RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .page-title .heading {
        padding: 30px 0 !important;
    }
    
    .page-title .heading h1 {
        font-size: 24px !important;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .common-card {
        padding: 1rem;
    }
    
    .card-header-modern {
        padding: 1rem 1.25rem;
        margin: -1rem -1rem 1rem -1rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   COMMON LINK STYLES
   ============================================ */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue-dark);
}

/* ============================================
   COMMON HR STYLES
   ============================================ */
hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid var(--border-color);
    opacity: 0.5;
}

