/* Cores do São Paulo FC */
:root {
    --spfc-red: #dc2626;
    --spfc-black: #1a1a1a;
    --spfc-white: #ffffff;
    --spfc-red-hover: #b91c1c;
    --spfc-gray: #6b7280;
}

/* Classes de cores customizadas */
.bg-spfc-red {
    background-color: var(--spfc-red) !important;
}

.bg-spfc-black {
    background-color: var(--spfc-black) !important;
}

.text-spfc-red {
    color: var(--spfc-red) !important;
}

.text-spfc-black {
    color: var(--spfc-black) !important;
}

.btn-spfc-red {
    background-color: var(--spfc-red);
    border-color: var(--spfc-red);
    color: var(--spfc-white);
}

.btn-spfc-red:hover {
    background-color: var(--spfc-red-hover);
    border-color: var(--spfc-red-hover);
    color: var(--spfc-white);
}

/* Estilos gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header */
.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--spfc-white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--spfc-black) 0%, #2d2d2d 100%);
    min-height: 42vh;
    display: flex;
    align-items: center;
}

.hero-section .display-4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-logo {
    height: 160px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Featured Section */
.featured-section {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

.featured-card {
    border-left: 5px solid var(--spfc-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.featured-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--spfc-red);
    transition: transform 0.3s ease;
}

.featured-photo:hover {
    transform: scale(1.05);
}

/* Conselheiros Cards */
.conselheiro-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.conselheiro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.conselheiro-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.conselheiro-card:hover .conselheiro-photo {
    transform: scale(1.1);
}

.card-img-top-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-overlay-custom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.conselheiro-card:hover .card-img-overlay-custom {
    opacity: 1;
}

/* Social Buttons */
.social-btn {
    transition: all 0.3s ease;
    border-width: 2px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--spfc-red) !important;
    transform: translateY(-2px);
}

/* Detalhes Modal/Page */
.details-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding-top: 2rem;
}

.details-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.details-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--spfc-red);
    margin: 0 auto;
    display: block;
}

/* Counter Styles */
.counter-badge {
    background: linear-gradient(45deg, var(--spfc-red), var(--spfc-red-hover));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        height: 120px;
    }
    
    .navbar-logo {
        height: 35px;
    }
    
    .featured-photo {
        width: 120px;
        height: 120px;
    }
    
    .details-photo {
        width: 200px;
        height: 200px;
    }
    
    .social-btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-logo {
        height: 100px;
    }
    
    .navbar-logo {
        height: 30px;
    }
    
    .featured-photo {
        width: 100px;
        height: 100px;
    }
    
    .btn-spfc-red {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .social-btn {
        flex: 1;
        min-width: 0;
    }
}

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

.border-spfc-red {
    border-color: var(--spfc-red) !important;
}

.shadow-spfc {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15) !important;
}

.btn-outline-spfc-red {
    color: var(--spfc-red);
    border-color: var(--spfc-red);
}

.btn-outline-spfc-red:hover {
    background-color: var(--spfc-red);
    border-color: var(--spfc-red);
    color: var(--spfc-white);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--spfc-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--spfc-red-hover);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
}

.loading-skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    height: 1.2em;
    display: inline-block;
    width: 100%;
}

.loading-skeleton-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.loading-skeleton-button {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 6px;
    border: none;
    color: transparent !important;
    cursor: not-allowed;
}

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

/* Fade in animation for loaded content */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
