/*
 * CSS for the public-facing side of the India College Finder Pro plugin.
 */

.icfp-widget-container {
    padding: 20px;
    background: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.icfp-widget-title {
    margin-bottom: 25px;
    font-size: 28px;
    color: #2c3e50;
    text-align: center;
}

.icfp-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.icfp-filter-group {
    display: flex;
    flex-direction: column;
}

.icfp-filter-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.icfp-filter-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
}

.icfp-search-button {
    grid-column: 1 / -1;
    padding: 12px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.icfp-search-button:hover {
    background-color: #2980b9;
}

.icfp-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.icfp-college-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icfp-college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icfp-card-header h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #2c3e50;
    line-height: 1.4;
}

.icfp-card-body p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.icfp-card-body strong {
    color: #333;
}

.icfp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 18px;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

/* Skeleton Loading UI */
.icfp-skeleton-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.icfp-skeleton-card {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pagination Styles */
.icfp-pagination-container {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.icfp-pagination-container a,
.icfp-pagination-container span {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
    cursor: pointer;
    transition: background 0.3s ease;
}

.icfp-pagination-container span.current {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.icfp-pagination-container a:hover {
    background-color: #f0f0f0;
}

/* Dark Theme Compatibility */
@media (prefers-color-scheme: dark) {
    .icfp-widget-container { background: #1a1a1a; }
    .icfp-widget-title { color: #ecf0f1; }
    .icfp-filters { background: #2c3e50; border-color: #34495e; }
    .icfp-filter-group label { color: #bdc3c7; }
    .icfp-filter-select { background: #34495e; color: #ecf0f1; border-color: #2c3e50; }
    .icfp-college-card { background: #2c3e50; border-color: #34495e; }
    .icfp-card-header h3 { color: #ecf0f1; }
    .icfp-card-body p { color: #bdc3c7; }
    .icfp-card-body strong { color: #ecf0f1; }
    .icfp-skeleton-card { background: linear-gradient(90deg, #2c3e50 25%, #34495e 50%, #2c3e50 75%); }
}
