/* UniDeApp Custom Styles */

:root {
    --uni-red: #FF0000;
    --uni-red-600: #cc0000;
    --uni-dark: #121212;
    --uni-gray: #6b7280;
    --uni-light: #f9fafb;
    --radius: 18px;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Button Styles */
.btn-uni-red {
    background: var(--uni-red);
    color: #fff;
    border-radius: 999px;
    border: 1px solid var(--uni-red);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-uni-red:hover {
    background: var(--uni-red-600);
    color: #fff;
    border-color: var(--uni-red-600);
    transform: translateY(-1px);
}

.btn-uni-red:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.btn-ghost {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--uni-gray);
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    border-color: #d1d5db;
    color: var(--uni-dark);
    transform: translateY(-1px);
}

/* Card Styles */
.card-uni {
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-uni:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Navigation Styles */
.nav-underline .nav-link.active {
    color: var(--uni-red);
    border-bottom: 2px solid var(--uni-red);
    font-weight: 600;
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--uni-red);
}

/* Text Colors */
.text-uni {
    color: var(--uni-red);
}

/* Link Styles */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #fff, #fff0f0);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

/* Utility Classes */
.pill {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.empty {
    border: 2px dashed #e5e7eb;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--uni-gray);
    background: #fafafa;
}

/* Badge Overrides */
.bg-uni-red {
    background-color: var(--uni-red) !important;
}

.badge-uni {
    background: rgba(255,0,0,.1);
    color: var(--uni-red);
    border-radius: 999px;
    padding: .25rem .6rem;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Custom Spacing */
.py-section {
    padding: 4rem 0;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--uni-red);
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

/* Alert Customizations */
.alert {
    border-radius: var(--radius);
    border: 0;
    box-shadow: var(--shadow);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--uni-gray);
}

/* Pagination Styles */
.pagination .page-link {
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    margin: 0 0.25rem;
    color: var(--uni-gray);
}

.pagination .page-link:hover {
    background-color: var(--uni-red);
    border-color: var(--uni-red);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--uni-red);
    border-color: var(--uni-red);
}

/* Footer Styles */
footer {
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .py-section {
        padding: 2rem 0;
    }
    
    .card-uni:hover {
        transform: none;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--uni-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--uni-red-600);
}

/* Club Card Styles */
.club-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.club-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.club-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.club-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #fff;
}

.club-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.club-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.club-university {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.club-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
}

.club-separator {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}

.club-events {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.club-events i {
    color: #9ca3af;
}

.club-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.club-btn-examine {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.club-btn-examine:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.club-btn-follow {
    background: var(--uni-red);
    border: 1px solid var(--uni-red);
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.club-btn-follow:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff;
    transform: translateY(-1px);
}

/* Responsive adjustments for club cards */
@media (max-width: 768px) {
    .club-card {
        padding: 1.25rem;
    }
    
    .club-logo {
        width: 70px;
        height: 70px;
    }
    
    .club-title {
        font-size: 1rem;
    }
    
    .club-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .club-btn-examine,
    .club-btn-follow {
        width: 100%;
    }
}