/* 
   ENHANCED: Custom CSS for Defined Searches (About) page
   
   Features:
   - Predefined search cards with hover effects
   - Data visualization charts
   - Advanced search builder
   - Responsive design
*/

/* Page Header */
.page-header {
    padding: 40px 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    color: #666;
}

/* Section Blocks */
.section-block {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Predefined Search Cards */
.search-card {
    display: block;
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.search-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-decoration: none;
}

.search-card:hover::before {
    transform: scaleX(1);
}

.search-card-science:hover { border-color: #4285F4; }
.search-card-history:hover { border-color: #FBBC05; }
.search-card-innovation:hover { border-color: #FF6D00; }
.search-card-business:hover { border-color: #673AB7; }
.search-card-arts:hover { border-color: #EA4335; }
.search-card-recent:hover { border-color: #34A853; }

.search-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.search-card:hover .search-icon {
    transform: scale(1.15) rotate(5deg);
}

.search-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.search-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 48px;
}

.search-count {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.search-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #667eea;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.search-card:hover .search-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Chart Cards */
.chart-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

canvas {
    max-height: 300px !important;
}

/* Advanced Search Card */
.advanced-search-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.advanced-search-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.advanced-search-form .form-control,
.advanced-search-form .form-select {
    border-radius: 10px;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.advanced-search-form .form-control:focus,
.advanced-search-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.advanced-search-form .btn {
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.advanced-search-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Quick Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.filter-tag {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .search-card {
        margin-bottom: 20px;
    }
    
    .chart-card {
        margin-bottom: 20px;
    }
    
    .advanced-search-card {
        padding: 25px 20px;
    }
    
    canvas {
        max-height: 250px !important;
    }
}

/* Loading Animation for Charts */
@keyframes chartLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-card canvas {
    animation: chartLoad 0.6s ease-out;
}

/* Info Tooltips */
.info-tooltip {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 0.8rem;
    cursor: help;
    margin-left: 5px;
}

.info-tooltip:hover {
    background: #764ba2;
}
