/* Futebol Itabirano - Custom CSS */
:root {
    --primary-green: #28a745;
    --dark-green: #1e7e34;
    --light-green: #d4edda;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #dee2e6;
}

/* Global Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-success:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.bg-success {
    background-color: var(--primary-green) !important;
}

.text-success {
    color: var(--primary-green) !important;
}

/* Header Styles */
.header-area {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    max-height: 60px;
    width: auto;
}

.search-form .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
    border-left: none;
}

.top-banner {
    text-align: center;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Main Content Styles */
.main-content {
    padding: 30px 0;
    min-height: 60vh;
}

.section-title {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--dark-green);
}

/* Featured Slider */
.featured-slider .carousel-item {
    height: 400px;
    position: relative;
}

.featured-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-slider .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    text-align: left;
}

.featured-slider .carousel-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.featured-slider .carousel-caption h3 a {
    color: white;
    text-decoration: none;
}

.featured-slider .carousel-caption h3 a:hover {
    color: var(--light-green);
}

/* News Items */
.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-item .news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-item .news-content {
    padding: 20px;
}

.news-item .news-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-item .news-content h4 a {
    color: var(--text-dark);
    text-decoration: none;
}

.news-item .news-content h4 a:hover {
    color: var(--primary-green);
}

.news-meta {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.news-meta i {
    color: var(--primary-green);
}

/* Video Items */
.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail iframe,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-content {
    padding: 15px;
}

.video-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Album Items */
.album-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.album-item:hover {
    transform: translateY(-2px);
}

.album-item img {
    border-radius: 4px;
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.album-item h6 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
}

.album-item h6 a:hover {
    color: var(--primary-green);
}

/* Sidebar Styles */
.sidebar-banner,
.content-banner,
.page-banner {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-banner .bg-primary,
.sidebar-banner .bg-success,
.sidebar-banner .bg-info,
.content-banner .bg-primary,
.content-banner .bg-success,
.content-banner .bg-info,
.page-banner .bg-primary,
.page-banner .bg-success,
.page-banner .bg-info {
    border-radius: 8px !important;
}

.top-banner {
    text-align: center;
    margin-bottom: 10px;
}

.top-banner .bg-info {
    border-radius: 6px !important;
}

/* Footer Styles */
.footer-area {
    background-color: #2c3e50 !important;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-widget h5 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--primary-green);
}

.footer-logo {
    max-height: 50px;
    width: auto;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #444 !important;
    color: #bbb;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-area {
        padding: 10px 0;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .search-form {
        margin-top: 15px;
    }
    
    .featured-slider .carousel-item {
        height: 250px;
    }
    
    .featured-slider .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .news-item .news-image {
        height: 150px;
    }
    
    .news-item .news-content {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .featured-slider .carousel-item {
        height: 200px;
    }
    
    .featured-slider .carousel-caption {
        padding: 20px 15px 15px;
    }
    
    .featured-slider .carousel-caption h3 {
        font-size: 1rem;
    }
    
    .news-item .news-content h4 {
        font-size: 1rem;
    }
    
    .album-item img {
        height: 50px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* Print Styles */
@media print {
    .header-area,
    .navbar,
    .sidebar-banner,
    .content-banner,
    .footer-area {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .news-item {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* Estilos específicos para páginas adicionais */

/* Album Styles */
.album-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.album-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover .album-image img {
    transform: scale(1.05);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-info {
    text-align: center;
    color: white;
}

.album-content {
    padding: 15px;
}

.album-content h5 a {
    color: var(--text-dark);
    text-decoration: none;
}

.album-content h5 a:hover {
    color: var(--primary-green);
}

/* Photo Gallery Styles */
.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

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

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Video Styles */
.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail iframe,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-content {
    padding: 15px;
}

.video-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.video-meta {
    margin-top: 10px;
}

/* Category/Championship Styles */
.category-header,
.championship-header {
    background: var(--light-green);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.category-title,
.championship-title {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 10px;
}

.category-description,
.championship-description {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.category-count,
.championship-count {
    margin-bottom: 0;
}

/* Page Styles */
.page-header {
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 15px;
}

.page-title {
    color: var(--primary-green);
    font-weight: 600;
}

.page-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
}

.page-body {
    font-size: 1.1rem;
    line-height: 1.7;
}

.page-body h2,
.page-body h3,
.page-body h4 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-body p {
    margin-bottom: 1.2rem;
}

/* Widget Styles */
.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget-title {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-green);
}

.widget ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--primary-green);
}

/* News Item Small */
.news-item-small h6 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
}

.news-item-small h6 a:hover {
    color: var(--primary-green);
}

/* Popular Items */
.popular-item h6 a,
.popular-video h6,
.recent-album h6 a,
.other-album h6 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
}

.popular-item h6 a:hover,
.recent-album h6 a:hover,
.other-album h6 a:hover {
    color: var(--primary-green);
}

/* Share Buttons */
.share-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 8px;
}

.modal-header {
    background-color: var(--primary-green);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Carousel in Modal */
.carousel-item img {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .album-image,
    .video-thumbnail,
    .photo-thumbnail {
        height: 150px;
    }
    
    .category-header,
    .championship-header {
        padding: 15px;
    }
    
    .widget {
        padding: 15px;
    }
    
    .page-body {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .album-image,
    .video-thumbnail,
    .photo-thumbnail {
        height: 120px;
    }
    
    .share-buttons .btn {
        width: 100%;
        margin-right: 0;
    }
}
/* Estilos específicos para thumbnails de vídeo */
.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail img {
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-overlay {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-button .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Thumbnails responsivas */
@media (max-width: 768px) {
    .play-overlay {
        width: 50px;
        height: 50px;
    }
    
    .play-button .btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .play-overlay {
        width: 40px;
        height: 40px;
    }
    
    .play-button .btn {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* Melhorias para vídeos relacionados */
.related-videos .related-item {
    transition: transform 0.2s ease;
}

.related-videos .related-item:hover {
    transform: translateX(5px);
}

.related-videos .related-item img {
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

.related-videos .related-item:hover img {
    opacity: 0.8;
}