/* Sanskriti Alumni Integration Styles */

/* General Widget Styles */
.alumni-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 10px 0;
}

/* Alumni Insights Widget */
.alumni-insights-widget {
    margin: 20px 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
}

.insight-number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.insight-label {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Top Colleges Widget */
.alumni-top-colleges-widget {
    margin: 20px 0;
}

.country-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.country-name {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.alumni-count {
    color: #7f8c8d;
    font-weight: normal;
    font-size: 0.9em;
}

.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.college-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.college-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.college-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 5px;
}

.college-name {
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

/* Charts Widgets */
.alumni-countries-widget,
.alumni-careers-widget {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Alumni Profiles Widget */
.alumni-profiles-widget.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.alumni-profiles-widget.layout-list .alumni-profile-card {
    display: flex;
    margin-bottom: 20px;
}

.alumni-profile-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.alumni-profile-card:hover {
    transform: translateY(-5px);
}

.profile-image {
    position: relative;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.layout-list .profile-image {
    width: 150px;
    flex-shrink: 0;
}

.layout-list .profile-image img {
    height: 150px;
}

.profile-content {
    padding: 20px;
}

.profile-name {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.profile-institute {
    margin: 0 0 15px 0;
    color: #3498db;
    font-weight: 600;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-details span {
    font-size: 0.9em;
    color: #7f8c8d;
    padding: 3px 8px;
    background: #ecf0f1;
    border-radius: 15px;
    display: inline-block;
    width: fit-content;
}

.notable-badge {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

/* Notable Alumni Widget */
.alumni-notable-widget {
    margin: 20px 0;
}

.notable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.notable-alumni-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    position: relative;
    transition: transform 0.3s ease;
}

.notable-alumni-card:hover {
    transform: translateY(-8px);
}

.notable-image {
    position: relative;
    overflow: hidden;
}

.notable-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.notable-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.notable-overlay .notable-badge {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.75em;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.notable-content {
    padding: 25px;
}

.notable-name {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: bold;
}

.notable-institute {
    margin: 0 0 15px 0;
    color: #3498db;
    font-weight: 600;
    line-height: 1.4;
}

.notable-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notable-details span {
    font-size: 0.9em;
    color: #7f8c8d;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

/* Responsive Design */
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .insight-card {
        padding: 20px 15px;
    }
    
    .insight-number {
        font-size: 2em;
    }
    
    .colleges-grid {
        grid-template-columns: 1fr;
    }
    
    .alumni-profiles-widget.layout-grid {
        grid-template-columns: 1fr;
    }
    
    .notable-grid {
        grid-template-columns: 1fr;
    }
    
    .layout-list .alumni-profile-card {
        flex-direction: column;
    }
    
    .layout-list .profile-image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .insight-card {
        padding: 15px 10px;
    }
    
    .insight-number {
        font-size: 1.8em;
    }
    
    .country-section,
    .profile-content,
    .notable-content {
        padding: 15px;
    }
}
