* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #000;
    border-bottom: 3px solid #1db954;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #1db954;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo p {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1db954;
}

.main-nav a.logout-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
}

.main-nav a.logout-btn:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Search Bar */
.search-bar {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.search-bar form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-bar input[type="text"]:focus {
    outline: none;
    border-color: #1db954;
}

.search-bar button[type="submit"] {
    padding: 12px 25px;
    background-color: #1db954;
    border: none;
    border-radius: 5px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button[type="submit"]:hover {
    background-color: #1ed760;
}

.clear-search {
    padding: 12px 20px;
    background-color: #333;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.clear-search:hover {
    background-color: #444;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0f0f0f;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-bar {
    position: relative;
}

.search-bar form {
    position: relative;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #e0e0e0;
    text-decoration: none;
    border-bottom: 1px solid #222;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #1a1a1a;
}

.suggestion-item strong {
    color: #fff;
    font-size: 14px;
}

.suggestion-item span {
    color: #1db954;
    font-size: 12px;
    font-weight: 600;
}

.suggestion-item mark {
    background-color: #1db954;
    color: #000;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1db954;
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1ed760;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #0f0f0f;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #1db954;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Article Card Animations */
.article-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.article-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State */
body.loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image Loading Skeleton */
.image-loading {
    position: relative;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.image-loaded {
    animation: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.article-image img,
.featured-image img {
    opacity: 0;
    transition: opacity 0.3s;
}

.image-loaded img {
    opacity: 1;
}

/* Form Validation */
input.error,
textarea.error {
    border-color: #e74c3c !important;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Featured Section */
.featured-section {
    padding: 40px 0;
    background-color: #0f0f0f;
}

.featured-article {
    position: relative;
    height: 600px;
    background-color: #0f0f0f;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s, box-shadow 0.5s;
}

.featured-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(29, 185, 84, 0.3);
}

.featured-image {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: brightness(0.85) contrast(1.1) saturate(1.3);
}

.featured-article:hover .featured-image img {
    transform: scale(1.08);
    filter: brightness(0.95) contrast(1.15) saturate(1.4);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 30%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.2) 85%,
        transparent 100%
    );
    padding: 60px 40px 40px;
    color: #fff;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
}

.featured-overlay h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.featured-overlay .excerpt {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.featured-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #1db954;
    font-weight: 600;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-article {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.featured-link {
    text-decoration: none;
    color: inherit;
}

.featured-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0) 100%);
    padding: 60px 40px 40px;
}

.category-tag {
    display: inline-block;
    background-color: #1db954;
    color: #000;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.featured-overlay h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}

.featured-overlay .excerpt {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
}

/* Articles Section */
.articles-section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.article-count {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results p {
    font-size: 18px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #0f0f0f;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: #1db954;
    box-shadow: 0 20px 40px rgba(29, 185, 84, 0.25);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.4s;
}

.article-card:hover .article-image::after {
    opacity: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.9) contrast(1.1) saturate(1.2);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.15) saturate(1.3);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #1db954 0%, #17a047 100%);
    color: #000;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid #222;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.pagination-link,
.pagination-number {
    padding: 10px 15px;
    background-color: #0f0f0f;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-link:hover,
.pagination-number:hover {
    background-color: #1db954;
    color: #000;
}

.pagination-current {
    padding: 10px 15px;
    background-color: #1db954;
    color: #000;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-ellipsis {
    padding: 10px 5px;
    color: #666;
}

/* Footer */
.footer {
    background-color: #000;
    border-top: 3px solid #1db954;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #1db954;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p {
    color: #888;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #1db954;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.social-link:hover {
    color: #1db954;
    border-color: #1db954;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.footer-bottom p {
    color: #666;
    font-size: 13px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #1db954;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: #1db954;
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #1ed760;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 400px;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #222;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
    }

    .search-bar form {
        flex-direction: column;
    }

    .search-bar button[type="submit"],
    .clear-search {
        width: 100%;
    }

    .featured-image {
        height: 350px;
    }

    .featured-overlay h2 {
        font-size: 28px;
    }

    .featured-overlay .excerpt {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .featured-image {
        height: 250px;
    }

    .featured-overlay {
        padding: 30px 20px 20px;
    }

    .featured-overlay h2 {
        font-size: 22px;
    }

    .featured-overlay .excerpt {
        font-size: 14px;
    }

    .article-content h3 {
        font-size: 18px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid #333;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    margin-left: 20px;
}

.theme-toggle:hover {
    border-color: #1db954;
    transform: rotate(180deg);
}

/* Light Mode */
body.light-mode {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

body.light-mode header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

body.light-mode .logo a,
body.light-mode nav a {
    color: #1a1a1a;
}

body.light-mode nav a:hover,
body.light-mode nav a.active {
    color: #1db954;
}

body.light-mode .article-card,
body.light-mode .featured-article {
    background-color: #fff;
    border-color: #e0e0e0;
}

body.light-mode .article-card h3,
body.light-mode .featured-article h2 {
    color: #1a1a1a;
}

body.light-mode .article-card p,
body.light-mode .meta {
    color: #666;
}

body.light-mode footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

body.light-mode .search-bar input {
    background-color: #fff;
    border-color: #e0e0e0;
    color: #1a1a1a;
}

body.light-mode .search-suggestions {
    background-color: #fff;
    border-color: #e0e0e0;
}

body.light-mode .search-suggestions li:hover {
    background-color: #f5f5f5;
}

body.light-mode .back-to-top {
    background-color: #fff;
    border-color: #e0e0e0;
    color: #1a1a1a;
}

body.light-mode .pagination-link,
body.light-mode .pagination-number {
    background-color: #fff;
    border-color: #e0e0e0;
    color: #1a1a1a;
}

body.light-mode .pagination-current {
    background-color: #1db954;
    color: #000;
}

body.light-mode .theme-toggle {
    border-color: #e0e0e0;
}

body.light-mode .featured-section {
    background-color: #fff;
}

body.light-mode .category-filter-buttons button {
    background-color: #fff;
    border-color: #e0e0e0;
    color: #1a1a1a;
}

body.light-mode .category-filter-buttons button.active {
    background-color: #1db954;
    color: #000;
}

/* Media Gallery Section */
.media-gallery-section {
    padding: 60px 0;
    background-color: #0f0f0f;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #888;
}

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.media-gallery-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.media-gallery-item:hover {
    transform: translateY(-5px);
    border-color: #1db954;
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.2);
}

.media-thumbnail {
    height: 200px;
    background-color: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.media-gallery-item:hover .media-thumbnail img {
    transform: scale(1.1);
}

.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumbnail.link {
    background: linear-gradient(135deg, #1db954 0%, #17a047 100%);
}

.link-preview {
    text-align: center;
    padding: 20px;
}

.link-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.link-preview p {
    color: #000;
    font-weight: 600;
    font-size: 14px;
}

.visit-link {
    display: block;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: background-color 0.3s;
}

.visit-link:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #1db954;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
}

.media-info-small {
    padding: 15px;
}

.media-info-small p {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.media-info-small span {
    color: #666;
    font-size: 12px;
}

body.light-mode .media-gallery-section {
    background-color: #fff;
}

body.light-mode .media-gallery-item {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

body.light-mode .media-thumbnail {
    background-color: #fff;
}

body.light-mode .media-info-small p {
    color: #1a1a1a;
}
