@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ntu-blue: #003d7c;
    --ntu-red: #c7162b;
    --ntu-red-light: #e53e3e;
    --ntu-blue-light: #2a6496;
}

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

.text-ntu-blue {
    color: var(--ntu-blue);
}

.bg-ntu-blue {
    background-color: var(--ntu-blue);
}

.text-ntu-red {
    color: var(--ntu-red);
}

.bg-ntu-red {
    background-color: var(--ntu-red);
}

.border-ntu-red {
    border-color: var(--ntu-red);
}

.ring-ntu-red {
    --tw-ring-color: var(--ntu-red);
}

.focus\:border-ntu-red:focus {
    --tw-border-opacity: 1;
    border-color: var(--ntu-red);
}

.focus\:ring-ntu-red:focus {
    --tw-ring-color: var(--ntu-red);
}

/* Club Cards */
.club-card {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}

.club-card:nth-child(1) { animation-delay: 0.1s; }
.club-card:nth-child(2) { animation-delay: 0.2s; }
.club-card:nth-child(3) { animation-delay: 0.3s; }
.club-card:nth-child(4) { animation-delay: 0.4s; }
.club-card:nth-child(5) { animation-delay: 0.5s; }
.club-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Club Checkbox Styling */
.club-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.club-checkbox {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 2px solid #d1d5db;
    border-radius: 4px;
}

.club-checkbox:checked {
    background-color: var(--ntu-red);
    border-color: var(--ntu-red);
}

.club-checkbox:hover {
    border-color: var(--ntu-red);
    transform: scale(1.05);
}

.club-checkbox:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--ntu-red);
    ring-opacity: 0.5;
}

/* Category Badge Colors */
.category-badge[data-category="Varsity Sports"] {
    background-color: #c7162b;
}
.category-badge[data-category="Academic & Professional Development"] {
    background-color: #003d7c;
}
.category-badge[data-category="Arts & Culture"] {
    background-color: #dd6b20;
}
.category-badge[data-category="Community & Social Impact"] {
    background-color: #2f855a;
}
.category-badge[data-category="Student Governance"] {
    background-color: #6b46c1;
}
.category-badge[data-category="Special Interest"] {
    background-color: #0891b2;
}

/* Filters Container */
.filters-container {
    background-color: #f8fafc;
}

/* Summary Items */
.summary-item {
    text-align: center;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Insight Cards */
.insight-card {
    transition: transform 0.2s ease-in-out;
}

.insight-card:hover {
    transform: translateY(-2px);
}

/* Metrics */
.metric {
    transition: all 0.2s ease-in-out;
}

.metric:hover {
    background-color: #e5e7eb;
    transform: scale(1.02);
}

/* Button Styling */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    transform: translateY(-1px);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Executive Summary Table */
table {
    border-collapse: collapse;
    width: 100%;
}

table th,
table td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
}

table th {
    background-color: #f9fafb;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .club-card {
        margin-bottom: 1rem;
    }

    .filters-container {
        padding: 1rem;
    }

    .grid {
        gap: 1rem;
    }

    .club-checkbox-container {
        padding: 2px;
    }

    .club-checkbox {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Enhanced Hover Effects */
.club-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Score Color Coding */
.score-high {
    background-color: #c7162b;
    color: white;
}
.score-medium {
    background-color: #eab308;
    color: white;
}
.score-low {
    background-color: #16a34a;
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus States */
input:focus, select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--ntu-red);
    border-color: var(--ntu-red);
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bg-gradient-ntu {
    background: linear-gradient(135deg, var(--ntu-blue), var(--ntu-red));
}

/* Animation Improvements */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Selected Club Highlight */
.club-card:has(.club-checkbox:checked) {
    border: 2px solid var(--ntu-red);
    background-color: #fef2f2;
}

/* Button Active States */
#show-selected-btn.bg-red-700 {
    background-color: #b91c1c !important;
}

#show-all-btn.bg-gray-700 {
    background-color: #374151 !important;
}

/* Print Styles */
@media print {
    .filters-container,
    .no-print,
    .club-checkbox-container {
        display: none;
    }

    .club-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Google Search Button Styling */
.google-search-btn {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-search-btn:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--ntu-red);
    ring-opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .google-search-btn {
        padding: 0.375rem; /* Slightly smaller on mobile */
    }

    .google-search-btn i {
        width: 0.875rem;
        height: 0.875rem;
    }
}
