/* Dojo Kaizen - Clean, Accessible Styles */

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #111827;
}

/* Typography */
.font-display {
    font-family: 'Oswald', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Navigation */
.nav-link {
    transition: all 0.2s ease-in-out;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    background-color: #f3f4f6;
}

.nav-link.active {
    background-color: #1e40af;
    color: white;
}

/* Cards - Clean and Accessible with Consistent Heights */
.card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: #d4af37;
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
    background-color: #fafafa;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Class Cards - Ensure Consistent Heights */
.class-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.class-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.class-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.class-card-actions {
    margin-top: auto;
    padding-top: 1rem;
}

/* Discipline Cards - Consistent Heights */
.discipline-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.discipline-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Buttons - WCAG AA Compliant */
.btn-primary {
    background-color: #1e40af;
    color: white;
    border: 2px solid #1e40af;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* Minimum touch target */
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary:focus {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.btn-secondary {
    background-color: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn-secondary:hover {
    background-color: #1e40af;
    color: white;
    transform: translateY(-1px);
}

.btn-secondary:focus {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.btn-success {
    background-color: #059669;
    color: white;
    border: 2px solid #059669;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn-success:hover {
    background-color: #047857;
    border-color: #047857;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn-outline:hover {
    background-color: #1e40af;
    color: white;
    transform: translateY(-1px);
}

.btn-outline:focus {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

/* Form Inputs - Accessible */
.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.5;
    background-color: white;
    color: #111827;
    transition: all 0.2s ease-in-out;
    min-height: 48px;
}

.form-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px #93c5fd;
}

.form-input::placeholder {
    color: #6b7280;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Discipline Colors - Accessible Contrast */
.discipline-boxing {
    background-color: #dc2626;
    color: white;
}

.discipline-kickboxing {
    background-color: #059669;
    color: white;
}

.discipline-muay-thai {
    background-color: #d97706;
    color: white;
}

.discipline-jiu-jitsu {
    background-color: #7c3aed;
    color: white;
}

/* Progress Indicators */
.xp-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 1rem;
}

.xp-progress {
    background-color: #1e40af;
    height: 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
}

/* Level Badges */
.level-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #1e40af;
    color: white;
}

/* Achievement Badges */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #d97706;
    color: white;
}

/* Status Indicators */
.status-scheduled {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-ongoing {
    background-color: #d1fae5;
    color: #059669;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-completed {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Utility Classes */
.hover-lift {
    transition: transform 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Loading Spinner */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-success {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
}

/* Focus Indicators for Accessibility */
*:focus {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 3px solid #000;
    }
}