@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
    --brand-primary: #4CAF50;
    --brand-dark: #2E7D32;
    --brand-light: #C8E6C9;
    --brand-light-text: #FFFFFF;
    --accent: #1976D2;
    --neutral: #607D8B;
    
    --white: #FFFFFF;
    --light-gray: #E5E7EB;
    --medium-gray: #9CA3AF;
    --dark-gray: #374151;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    --font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* Primary */
.cms-bg-primary {
    background-color: var(--brand-primary) !important;
}
.cms-text-primary {
    color: var(--brand-primary) !important;
}
.cms-border-primary {
    border-color: var(--brand-primary) !important;
}

/* Dark */
.cms-bg-dark {
    background-color: var(--brand-dark) !important;
}
.cms-text-dark {
    color: var(--brand-dark) !important;
}
.cms-border-dark {
    border-color: var(--brand-dark) !important;
}

/* Light */
.cms-bg-light {
    background-color: var(--brand-light) !important;
}
.cms-text-light {
    color: var(--brand-light) !important;
}
.cms-border-light {
    border-color: var(--brand-light) !important;
}

/* Accent */
.cms-bg-accent {
    background-color: var(--accent) !important;
}

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

.cms-border-accent {
    border-color: var(--accent) !important;
}

/* Neutral - Not available in Tailwind */
.cms-text-neutral {
    color: var(--neutral) !important;
}
.cms-bg-neutral {
    background-color: var(--neutral) !important;
}
.cms-border-neutral {
    border-color: var(--neutral) !important;
}

/* Hover State Utilities */
/* Background Hover States */
.hover-cms-bg-primary:hover {
    background-color: var(--brand-primary) !important;
}
.hover-cms-bg-dark:hover {
    background-color: var(--brand-dark) !important;
}
.hover-cms-bg-light:hover {
    background-color: var(--brand-light) !important;
}
.hover-cms-bg-accent:hover {
    background-color: var(--accent) !important;
}
.hover-cms-bg-neutral:hover {
    background-color: var(--neutral) !important;
}

/* Text Hover States */
.hover-cms-text-primary:hover {
    color: var(--brand-primary) !important;
}
.hover-cms-text-dark:hover {
    color: var(--brand-dark) !important;
}
.hover-cms-text-light:hover {
    color: var(--brand-light) !important;
}
.hover-cms-text-accent:hover {
    color: var(--accent) !important;
}
.hover-cms-text-neutral:hover {
    color: var(--neutral) !important;
}

/* Border Hover States */
.hover-cms-border-primary:hover {
    border-color: var(--brand-primary) !important;
}
.hover-cms-border-dark:hover {
    border-color: var(--brand-dark) !important;
}
.hover-cms-border-light:hover {
    border-color: var(--brand-light) !important;
}
.hover-cms-border-accent:hover {
    border-color: var(--accent) !important;
}
.hover-cms-border-neutral:hover {
    border-color: var(--neutral) !important;
}

/* Typography */
.cms-h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    margin-bottom: 24px;
}

.cms-h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    margin-bottom: 16px;
}

.cms-h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    margin-bottom: 12px;
}

.cms-h4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 8px;
}

.cms-h5 {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 8px;
}

.cms-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 8px;
}

.cms-small {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 8px;
}

/* Links */
.cms-link {
    text-decoration: none;
    transition: all 150ms ease;
}

.cms-link:hover {
    text-decoration: underline;
}

/* Buttons */
.cms-btn {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 150ms ease;
    border: none;
    font-family: var(--font-family);
}

.cms-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cards */
.cms-card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 16px;
    transition: box-shadow 150ms ease;
    min-width: 300px;
    max-width: 400px;
}

.cms-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.cms-card-header {
    margin-bottom: 16px;
}

.cms-card-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
}

.cms-card-content {
    font-size: 16px;
    line-height: 24px;
}

.cms-card-footer {
    margin-top: 16px;
}

/* Form Elements */
.cms-form-control {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-family: var(--font-family);
    border-radius: 4px;
    transition: all 150ms ease;
    box-sizing: border-box;
}

.cms-form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.cms-form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.cms-form-select {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-family: var(--font-family);
    border-radius: 4px;
    appearance: none;
    box-sizing: border-box;
}

.cms-form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    font-size: 14px;
    font-family: var(--font-family);
    border-radius: 4px;
    resize: vertical;
    transition: all 150ms ease;
    box-sizing: border-box;
}

.cms-form-checkbox, .cms-form-radio {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.cms-form-checkbox + label, .cms-form-radio + label {
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
    display: flex;
    align-items: center;
}

.cms-error-message {
    font-size: 14px;
    margin-top: 4px;
    color: var(--error);
}

.cms-success-message {
    font-size: 14px;
    margin-top: 4px;
    color: var(--success);
}

/* Media Queries */
@media (max-width: 768px) {
    .cms-h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
    .cms-h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .cms-h3 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .cms-btn {
        margin-bottom: 8px;
    }
    
    .cms-card {
        min-width: 280px;
    }
}