:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Dark Mode Styles */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #f8f9fa;
}

[data-bs-theme="dark"] .card {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #404040;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Article Content Styling */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--secondary-color);
}

/* Featured Slider */
.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    text-align: left;
}

/* Loading Spinner */
.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

[data-bs-theme="dark"] .spinner-wrapper {
    background: rgba(0,0,0,0.8);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    h1.display-5 {
        font-size: 2rem;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}

/* Search Highlight */
.search-highlight {
    background-color: yellow;
    font-weight: bold;
}

[data-bs-theme="dark"] .search-highlight {
    background-color: #ffd700;
    color: #000;
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Social Share Buttons Hover */
.btn-facebook:hover,
.btn-twitter:hover,
.btn-linkedin:hover,
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Category Badges */
.category-badge {
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: scale(1.05);
}

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.loading-pulse {
    animation: pulse 1.5s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}