/**
 * Environmental Boards Dashboard Styles
 * Comprehensive styling for the boards dashboard with Firecrawl verification
 */

/* ========================================
   Environmental Boards Dashboard Styles
   ======================================== */

.environmental-boards-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.environmental-boards-dashboard {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Dashboard Controls */
.dashboard-controls {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:hover {
    border-color: #2a5298;
}

.filter-select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.verify-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Verification Status Panel */
.verification-status {
    margin-bottom: 2rem;
}

.status-panel {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-item.alert {
    background: #fff3cd;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.status-icon {
    font-size: 1.5rem;
}

.status-label {
    font-weight: 600;
    color: #333;
}

/* Boards Grid */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .boards-grid {
        grid-template-columns: 1fr;
    }
}

/* Board Cards */
.board-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.board-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2a5298 0%, #4CAF50 100%);
}

.board-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #2a5298;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.board-header h3 {
    flex: 1;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 0;
}

/* Verification Badges */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    background: #e0e0e0;
    color: #666;
}

.verification-badge.verified {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
}

.verification-badge.changes {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
    animation: pulse 2s infinite;
}

.verification-badge.failed {
    background: linear-gradient(135deg, #F44336 0%, #E57373 100%);
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Board Info Sections */
.board-info {
    margin-bottom: 1.5rem;
}

.info-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h4 {
    font-size: 1.1rem;
    color: #2a5298;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    color: #555;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.info-section strong {
    color: #333;
}

.virtual-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Members List */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
}

.member-item strong {
    color: #2a5298;
}

.member-item small {
    color: #777;
}

.show-all {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid #2a5298;
    color: #2a5298;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.show-all:hover {
    background: #2a5298;
    color: white;
}

/* Topics Tags */
.topics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #2E7D32;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Board Actions */
.board-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.board-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.9rem;
}

.board-actions .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.board-actions .btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.board-actions .btn-primary {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
}

.board-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

/* Verified Info / Changes Alert */
.verified-info {
    margin-top: 1.5rem;
}

.changes-alert {
    padding: 1.25rem;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-left: 4px solid #FF9800;
    border-radius: 8px;
}

.changes-alert strong {
    display: block;
    color: #E65100;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.change-item {
    padding: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
}

.change-item del {
    color: #999;
    text-decoration: line-through;
}

.change-item strong {
    color: #E65100;
    font-weight: 700;
}

/* Alert Subscription Section */
.alert-subscription {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 16px;
    margin-top: 2rem;
}

.alert-subscription h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.alert-subscription p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2a5298;
}

.contact-item strong {
    color: #2a5298;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #2a5298;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-controls {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
        justify-content: stretch;
    }
    
    .filter-select {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .environmental-boards-dashboard {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-header h2 {
        font-size: 2rem;
    }
    
    .board-card {
        padding: 1.5rem;
    }
    
    .board-header {
        flex-direction: column;
    }
    
    .board-actions {
        flex-direction: column;
    }
    
    .board-actions .btn {
        width: 100%;
    }
    
    .status-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .environmental-boards-section {
        padding: 2rem 0;
    }
    
    .environmental-boards-dashboard {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-header h2 {
        font-size: 1.6rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .dashboard-controls {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .dashboard-controls,
    .verify-btn,
    .board-actions,
    .alert-subscription {
        display: none;
    }
    
    .board-card {
        break-inside: avoid;
    }
}
