/* FundingRadar Styles - css/style.css */

:root {
    --primary: #0066CC;
    --primary-dark: #0052A3;
    --success: #4CAF50;
    --danger: #f44336;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: #fff;
}

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

/* Header & Navigation */
header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-note {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 14px;
}

/* Buttons */
.btn-primary,
.btn-cta {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-cta {
    background: var(--success);
    color: white;
    font-size: 18px;
    padding: 16px 40px;
}

.btn-primary:hover,
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--gray-50);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--gray-900);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.feature p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    text-align: center;
    background: white;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--gray-900);
}

/* Footer */
footer {
    background: var(--gray-900);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-box h1 {
    margin-bottom: 30px;
    color: var(--gray-900);
    text-align: center;
    font-size: 28px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard */
.dashboard-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.dashboard-main {
    padding: 30px 20px;
    min-height: 70vh;
}

.dashboard-header-section {
    margin-bottom: 30px;
}

.dashboard-header-section h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.dashboard-header-section p {
    color: var(--gray-600);
    font-size: 16px;
}

/* Calls Grid */
.calls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.call-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.call-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.call-program {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.match-score {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.call-card h3 {
    margin-bottom: 15px;
    color: var(--gray-900);
    line-height: 1.4;
    font-size: 18px;
}

.call-meta {
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.meta-item {
    display: block;
    margin: 6px 0;
    font-size: 14px;
    color: var(--gray-600);
}

.meta-item strong {
    color: var(--gray-800);
}

.call-description {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-50);
    border-radius: 8px;
}

.empty-state h2 {
    margin-bottom: 15px;
    color: var(--gray-900);
    font-size: 24px;
}

.empty-state p {
    color: var(--gray-600);
    font-size: 16px;
}

.empty-state a {
    color: var(--primary);
    font-weight: 600;
}

/* Profile Page */
.profile-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.profile-main h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.profile-main .subtitle {
    color: var(--gray-600);
    margin-bottom: 30px;
    font-size: 16px;
}

.profile-form {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 30px;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.field-help {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.checkbox-label:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-section textarea {
    resize: vertical;
    min-height: 80px;
}

.form-section select,
.form-section input[type="number"] {
    max-width: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero .subtitle {
        font-size: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .calls-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
}