:root {
    /* Base font size */
    font-size: 16px;

    /* Light Theme Colors */
    --primary-light: #2e7d32;
    --secondary-light: #1b5e20;
    --accent-light: #4caf50;
    --text-light: #333333;
    --bg-light: #ffffff;
    --card-light: #f8f9fa;
    --border-light: #e0e0e0;

    /* Dark Theme Colors */
    --primary-dark: #388e3c;
    --secondary-dark: #2e7d32;
    --accent-dark: #81c784;
    --text-dark: #f5f5f5;
    --bg-dark: #121212;
    --card-dark: #1e1e1e;
    --border-dark: #333333;

    /* Current Theme Variables */
    --primary: var(--primary-light);
    --secondary: var(--secondary-light);
    --accent: var(--accent-light);
    --text: var(--text-light);
    --bg: var(--bg-light);
    --card: var(--card-light);
    --border: var(--border-light);
}

[data-theme="dark"] {
    --primary: var(--primary-dark);
    --secondary: var(--secondary-dark);
    --accent: var(--accent-dark);
    --text: var(--text-dark);
    --bg: var(--bg-dark);
    --card: var(--card-dark);
    --border: var(--border-dark);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
    line-height: 1.6;
    font-size: 1em;
}

/* Playlist Section */
.playlist-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.playlist-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.tab-button {
    padding: 15px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: var(--transition);
}

.tab-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    color: white;
    font-weight: 600;
}

.tab-button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
}

.playlist-content {
    padding: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.video-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 15px;
    color: var(--gray);
    font-size: 0.85rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Active button styling */
.tab-button.active {
    background-color: #007bff;
    color: white;
}

.cursor-pointer {
    cursor: pointer;
}

/* Custom carousel indicators */
.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    margin: 0 3px;
}

/* Modal fullscreen on mobile */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .modal-body {
        padding: 0;
        display: flex;
        align-items: center;
    }

    .carousel-inner img {
        max-height: 100vh !important;
    }
}

/* Typography with em units */
h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

h5 {
    font-size: 1.25em;
}

h6 {
    font-size: 1em;
}

.lead {
    font-size: 1.25em;
}

.small {
    font-size: 0.875em;
}

.navbar {
    background-color: var(--card) !important;
    border-bottom: 1px solid var(--border);
    padding: 0.75em 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25em;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 1em;
    padding: 0.5em 1em;
}

.nav-link:hover {
    color: var(--primary);
}

.btn {
    font-size: 1em;
    padding: 0.5em 1em;
}

.btn-lg {
    font-size: 1.125em;
    padding: 0.75em 1.5em;
}

.btn-sm {
    font-size: 0.875em;
    padding: 0.375em 0.75em;
}

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

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    margin-bottom: 1.5em;
}

.card:hover {
    transform: translateY(-0.3125em);
}

.card-header {
    padding: 0.75em 1.25em;
}

.card-body {
    padding: 1.25em;
}

.card-footer {
    padding: 0.75em 1.25em;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("https://images.unsplash.com/photo-1519817650390-64a93db51149?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6.25em 0;
    text-align: center;
}

.live-badge {
    background-color: #ff4d4d;
    color: white;
    padding: 0.3125em 0.625em;
    border-radius: 0.25em;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    font-size: 0.875em;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.section-title {
    position: relative;
    padding-bottom: 0.625em;
    margin-bottom: 1.875em;
    color: var(--primary);
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.125em;
    height: 0.1875em;
    background-color: var(--primary);
}

.footer {
    background-color: var(--card);
    color: var(--text);
    padding: 3.125em 0 1.25em;
    border-top: 1px solid var(--border);
}

.footer h5 {
    margin-bottom: 1em;
    font-size: 1.25em;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.625em;
    font-size: 1em;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    margin-right: 0.625em;
    transition: all 0.3s ease;
    font-size: 1em;
}

.social-icon:hover {
    background-color: var(--secondary);
    transform: translateY(-0.1875em);
}

.theme-toggle {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2em;
    color: var(--text);
    padding: 0.5em;
}

/* Responsive adjustments */
/* Mobile (up to 576px) */
@media (max-width: 36em) {
    :root {
        font-size: 14px;
    }

    .hero-section {
        padding: 4em 0;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    .hero-section .lead {
        font-size: 1.1em;
    }

    .navbar-brand {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .footer {
        text-align: center;
    }

    .social-icon {
        margin: 0.3em;
    }

    .btn-lg {
        font-size: 1em;
        padding: 0.5em 1em;
    }
}

/* Tablet (577px - 992px) */
@media (min-width: 36.0625em) and (max-width: 62em) {
    :root {
        font-size: 15px;
    }

    .hero-section {
        padding: 5em 0;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.75em;
    }
}

/* Desktop (993px and up) */
@media (min-width: 62.0625em) {
    /* Default styles already handle desktop */
}
.logo {
    max-height: 2.5em;
}

@media (max-width: 992px) {
    .logo {
        max-height: 2.5em;
    }
}

@media (max-width: 576px) {
    .logo {
        max-height: 2.5em;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumbs__item {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #6c757d;
}

.breadcrumbs__url {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs__url:hover {
    color: var(--primary);
}

.breadcrumbs__item--current .breadcrumbs__url {
    color: var(--text);
    font-weight: 500;
}

/* Article Header */
.article-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.article-meta i {
    margin-right: 5px;
}

/* Article Image */
.article-image {
    margin: 0 0 25px;
    position: relative;
}

.article-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.image-caption {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Article Share */
.article-share {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.share-label {
    margin-right: 15px;
    font-weight: 500;
}

.share-buttons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.btn-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: transform 0.3s;
}

.btn-social:hover {
    transform: translateY(-3px);
}

.facebook {
    background-color: #3b5998;
}
.twitter {
    background-color: #1da1f2;
}
.whatsapp {
    background-color: #25d366;
}
.telegram {
    background-color: #0088cc;
}
.linkedin {
    background-color: #0077b5;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.article-body p {
    margin-bottom: 1.5rem;
}

/* Tags */
.blog-tags {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tags-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tag-item:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.share-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
}

.btn-social.facebook {
    background-color: #3b5998;
}
.btn-social.twitter {
    background-color: #1da1f2;
}
.btn-social.whatsapp {
    background-color: #25d366;
}
.btn-social.telegram {
    background-color: #0088cc;
}
.btn-social.linkedin {
    background-color: #0077b5;
}

.btn-social:hover {
    opacity: 0.9;
    color: white;
}
