:root {
    --primary-color: #A020F0;
    --secondary-color: #1d3557;
    --text-color: #333;
    --bg-color: linear-gradient(135deg, #A020F0, #B026FF);
    --card-bg: #fff;
    --border-color: #e9ecef;
    --hover-color: #B026FF;
}

[data-theme="dark"] {
    --primary-color: #B026FF;
    --secondary-color: #a8dadc;
    --text-color: #f1faee;
    --bg-color: linear-gradient(135deg, #2D054B, #58118A);
    --card-bg: #1e1e1e;
    --border-color: #333;
    --hover-color: #A020F0;
}

body {
    background: var(--bg-color);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: background 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
    background: var(--bg-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff !important;
    letter-spacing: -1px;
}
.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #fff !important;
}

/* Theme Toggle */
#theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
}

/* Cards */
.article-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.article-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}
.article-img-wrapper img, .article-img-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background-color: #000;
    transition: transform 0.5s;
}
.article-card:hover .article-img-wrapper img, .article-card:hover .article-img-wrapper video {
    transform: scale(1.05);
}
.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}
.article-content {
    padding: 1.5rem;
}
.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-title:hover {
    color: var(--primary-color);
}
.article-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero-article {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.hero-article img, .hero-article video {
    width: 100%;
    height: 400px !important;
    object-fit: contain;
    background-color: #000;
}
.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 3rem 2rem 2rem;
    color: white;
}
.hero-overlay .article-title {
    color: white;
    font-size: 2.5rem;
    -webkit-line-clamp: 3;
}
.hero-overlay .article-meta {
    color: #ccc;
}

/* Single Article */
.single-article-header {
    margin-bottom: 2rem;
}
.single-article-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
    max-height: 600px;
    object-fit: cover;
}
.single-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.single-article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Comments */
.comment-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.comment-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Footer */
footer {
    background: var(--bg-color);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 0;
    margin-top: 4rem;
    color: #fff;
}
footer h4, footer h5 {
    color: #fff !important;
}
footer .text-muted {
    color: rgba(255,255,255,0.7) !important;
}
footer a.text-muted:hover {
    color: #fff !important;
}

/* Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    margin-right: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
.share-btn:hover {
    opacity: 0.8;
    color: white;
}
.btn-facebook { background: #1877f2; }
.btn-twitter { background: #1da1f2; }
.btn-whatsapp { background: #25d366; }
.btn-instagram { background: #E1306C; }
.btn-spotify { background: #1DB954; }
.btn-email { background: #D44638; }

@media (max-width: 768px) {
    .hero-article img, .hero-article video { height: 300px !important; }
    .hero-overlay .article-title { font-size: 1.8rem; }
}

/* Beautiful Enhancements */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #ff007f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-ticker-enhanced {
    background: linear-gradient(45deg, var(--primary-color), #8A2BE2, #ff007f);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    box-shadow: 0 8px 25px rgba(160, 32, 240, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 60px;
    background: linear-gradient(135deg, var(--primary-color), #ff007f);
    border-radius: 2px;
}

.popular-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    width: 50px;
    text-align: center;
    background: linear-gradient(to bottom, #ccc, transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.article-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(160, 32, 240, 0.15);
}

.article-title-hover {
    transition: color 0.3s ease;
}

.article-title-hover:hover {
    color: var(--primary-color) !important;
}

.popular-card-hover:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(160, 32, 240, 0.15) !important;
}

/* Make Carousel Arrows More Visible */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 25px;
    background-size: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}
