/* ===== FCA Events Components CSS ===== */
/* This file contains styles for various FCA Events components */

/* ===== Calendar Integration Component ===== */

.fca-add-calendar-btn {
    width: 100%;
    margin-top: 16px;
}

.fca-calendar-card {
    background: var(--fcom-card-bg, #fff);
    border: 1px solid var(--fcom-primary-border, #D9D7D5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fca-calendar-card h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--fcom-primary-text, #160C01);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fca-calendar-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fca-calendar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--fcom-primary-border, #D9D7D5);
    border-radius: 8px;
    background: var(--fcom-card-bg, #fff);
    color: var(--fcom-primary-text, #160C01);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
    width: 100%;
}

.fca-calendar-btn:hover {
    background: var(--fcom-highlight-bg, #FFF5EC);
    border-color: var(--fcom-text-link, #F97316);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.fca-calendar-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.1);
}

.fca-calendar-btn i {
    font-size: 16px;
    color: var(--fcom-text-link, #F97316);
    flex-shrink: 0;
}

/* Calendar-specific button styles */
.fca-google-cal:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.fca-google-cal:hover i {
    color: #4285f4;
}

.fca-outlook-cal:hover {
    border-color: #0078d4;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.15);
}

.fca-outlook-cal:hover i {
    color: #0078d4;
}

.fca-apple-cal:hover {
    border-color: #007aff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.fca-apple-cal:hover i {
    color: #007aff;
}

.fca-ical-download:hover {
    border-color: #34a853;
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.15);
}

.fca-ical-download:hover i {
    color: #34a853;
}

/* ===== Calendar Options Modal ===== */

.fca-calendar-options-modal .fca-modal-content {
    max-width: 400px;
}

.fca-calendar-options-modal .fca-calendar-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.fca-calendar-options-modal .fca-calendar-btn {
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 15px;
}

.fca-calendar-options-modal .fca-calendar-btn i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* ===== Generic Component Card Styles ===== */

.fca-component-card {
    background: var(--fcom-card-bg, #fff);
    border: 1px solid var(--fcom-primary-border, #D9D7D5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.fca-component-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.fca-component-card h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--fcom-primary-text, #160C01);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fca-component-card h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--fcom-primary-text, #160C01);
}

/* ===== Generic Button Styles ===== */

.fca-component-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--fcom-primary-border, #D9D7D5);
    border-radius: 8px;
    background: var(--fcom-card-bg, #fff);
    color: var(--fcom-primary-text, #160C01);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
    width: 100%;
}

.fca-component-btn:hover {
    background: var(--fcom-highlight-bg, #FFF5EC);
    border-color: var(--fcom-text-link, #F97316);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.fca-component-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.1);
}

.fca-component-btn i {
    font-size: 16px;
    color: var(--fcom-text-link, #F97316);
    flex-shrink: 0;
}

/* Button variants */
.fca-component-btn--primary {
    background: var(--fcom-text-link, #F97316);
    color: #fff;
    border-color: var(--fcom-text-link, #F97316);
}

.fca-component-btn--primary:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff;
}

.fca-component-btn--secondary {
    background: var(--fcom-secondary-bg, #f8f9fa);
    color: var(--fcom-secondary-text, #666);
    border-color: var(--fcom-secondary-border, #dee2e6);
}

.fca-component-btn--secondary:hover {
    background: var(--fcom-secondary-hover-bg, #e9ecef);
    border-color: var(--fcom-secondary-hover-border, #adb5bd);
    color: var(--fcom-secondary-hover-text, #495057);
}

.fca-component-btn--success {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.fca-component-btn--success:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.fca-component-btn--warning {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

.fca-component-btn--warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.fca-component-btn--danger {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.fca-component-btn--danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* ===== Generic List Styles ===== */

.fca-component-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fca-component-list--horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.fca-component-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--fcom-secondary-bg, #f8f9fa);
    transition: all 0.2s ease;
}

.fca-component-list-item:hover {
    background: var(--fcom-highlight-bg, #FFF5EC);
}

/* ===== Generic Badge Styles ===== */

.fca-component-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fca-component-badge--success {
    background: #d1fae5;
    color: #065f46;
}

.fca-component-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.fca-component-badge--danger {
    background: #fee2e2;
    color: #991b1b;
}

.fca-component-badge--info {
    background: #dbeafe;
    color: #1e40af;
}

/* ===== Generic Modal Styles ===== */

.fca-component-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.fca-component-modal {
    background: var(--fcom-card-bg, #fff);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fca-component-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--fcom-primary-border, #D9D7D5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fca-component-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.fca-component-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--fcom-primary-border, #D9D7D5);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ===== Generic Form Styles ===== */

.fca-component-form-group {
    margin-bottom: 16px;
}

.fca-component-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--fcom-primary-text, #160C01);
    font-size: 14px;
}

.fca-component-form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.fca-component-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fcom-primary-border, #D9D7D5);
    border-radius: 6px;
    font-size: 14px;
    background: var(--fcom-card-bg, #fff);
    color: var(--fcom-primary-text, #160C01);
    transition: all 0.2s ease;
}

.fca-component-form-input:focus {
    outline: none;
    border-color: var(--fcom-text-link, #F97316);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.fca-component-form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    .fca-calendar-card,
    .fca-component-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .fca-calendar-btn,
    .fca-component-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .fca-calendar-btn i,
    .fca-component-btn i {
        font-size: 18px;
    }
    
    .fca-component-list--horizontal {
        flex-direction: column;
        gap: 8px;
    }
    
    .fca-component-modal {
        width: 95vw;
        max-height: 95vh;
    }
    
    .fca-component-modal-header,
    .fca-component-modal-body,
    .fca-component-modal-footer {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .fca-component-modal-footer {
        flex-direction: column;
    }
    
    .fca-component-modal-footer .fca-component-btn {
        width: 100%;
    }
}

/* ===== Dark Mode Support ===== */

@media (prefers-color-scheme: dark) {
    .fca-calendar-card,
    .fca-component-card {
        background: var(--fcom-card-bg-dark, #1a1a1a);
        border-color: var(--fcom-primary-border-dark, #333);
    }
    
    .fca-calendar-btn,
    .fca-component-btn {
        background: var(--fcom-card-bg-dark, #1a1a1a);
        border-color: var(--fcom-primary-border-dark, #333);
        color: var(--fcom-primary-text-dark, #fff);
    }
    
    .fca-calendar-btn:hover,
    .fca-component-btn:hover {
        background: var(--fcom-highlight-bg-dark, #2a2a2a);
        border-color: var(--fcom-text-link-dark, #f97316);
    }
    
    .fca-component-btn--secondary {
        background: var(--fcom-secondary-bg-dark, #2a2a2a);
        color: var(--fcom-secondary-text-dark, #ccc);
        border-color: var(--fcom-secondary-border-dark, #444);
    }
    
    .fca-component-btn--secondary:hover {
        background: var(--fcom-secondary-hover-bg-dark, #333);
        border-color: var(--fcom-secondary-hover-border-dark, #555);
        color: var(--fcom-secondary-hover-text-dark, #fff);
    }
    
    .fca-component-list-item {
        background: var(--fcom-secondary-bg-dark, #2a2a2a);
    }
    
    .fca-component-list-item:hover {
        background: var(--fcom-highlight-bg-dark, #333);
    }
    
    .fca-component-modal {
        background: var(--fcom-card-bg-dark, #1a1a1a);
    }
    
    .fca-component-modal-header,
    .fca-component-modal-footer {
        border-color: var(--fcom-primary-border-dark, #333);
    }
    
    .fca-component-form-input {
        background: var(--fcom-card-bg-dark, #1a1a1a);
        color: var(--fcom-primary-text-dark, #fff);
        border-color: var(--fcom-primary-border-dark, #333);
    }
    
    .fca-component-form-input:focus {
        border-color: var(--fcom-text-link-dark, #f97316);
    }
}

/* ===== Accessibility Improvements ===== */

.fca-component-btn:focus,
.fca-component-form-input:focus {
    outline: 2px solid var(--fcom-text-link, #F97316);
    outline-offset: 2px;
}

.fca-component-btn:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fca-calendar-card,
    .fca-component-card {
        border-width: 2px;
    }
    
    .fca-calendar-btn,
    .fca-component-btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fca-calendar-btn,
    .fca-component-btn,
    .fca-component-card,
    .fca-component-list-item {
        transition: none;
    }
    
    .fca-calendar-btn:hover,
    .fca-component-btn:hover {
        transform: none;
    }
}
