/* Anime Site Frontend CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #43e97b;
    --danger: #f93e3e;
    --warning: #ffc107;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --light: #f5f6fa;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0f0f1e;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    color: var(--primary);
    font-size: 28px;
}

.main-nav {
    display: flex;
    gap: 30px;
    flex: 1;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
}

.search-form input {
    background: none;
    border: none;
    padding: 10px 20px;
    color: white;
    width: 250px;
    outline: none;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-form button {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: var(--primary-dark);
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--dark-light);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--dark);
    z-index: 2000;
    transition: right 0.3s;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 30px;
}

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) blur(2px);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.slide-info {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.slide-poster {
    flex-shrink: 0;
    width: 250px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.slide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide:hover .slide-poster img {
    transform: scale(1.05);
}

.slide-details {
    flex: 1;
    max-width: 600px;
}

.slide-details h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.slide-details p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.slide-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item i {
    color: var(--primary);
    font-size: 16px;
}

.slide-actions {
    display: flex;
    gap: 15px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark-light);
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pagination-number.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination-dots {
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    padding: 0 5px;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
}

/* Anime Slider */
.anime-slider-container {
    position: relative;
    /* overflow: hidden; REMOVED */
    border-radius: 15px;
}

.anime-slider-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.anime-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.anime-slide {
    flex: 0 0 calc((100% - (4 * 20px)) / 5); /* Corrected for 5 slides and 4 gaps */
    min-width: 0;
}

.anime-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.anime-slider-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.anime-slider-btn.prev {
    left: 20px;
}

.anime-slider-btn.next {
    right: 20px;
}

/* Blog Cards for Homepage */
.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.blog-card-home {
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.blog-image-home {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.blog-card-home:hover .blog-image-home img {
    transform: scale(1.05);
}

.blog-content-home {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title-home {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.4;
}

.blog-title-home a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title-home a:hover {
    color: var(--primary);
}

.blog-meta-home {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-meta-home span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.blog-meta-home i {
    color: var(--primary);
    font-size: 11px;
}

.blog-excerpt-home {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-size: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    align-self: flex-start;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.slider-btn:hover {
    background: var(--primary);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Anime Section */
.anime-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    color: var(--primary);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.view-all:hover {
    gap: 10px;
}

/* Anime Grid */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* Anime Card */
.anime-card {
    background: var(--dark-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.anime-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Ensure card links keep white text in all states */
.anime-grid a.anime-card,
.anime-grid a.anime-card:visited,
.anime-grid a.anime-card:hover,
.anime-grid a.anime-card:active {
    color: #fff !important;
}

.anime-card-link {
    text-decoration: none;
    color: inherit;
}

.anime-card-image {
    position: relative;
    padding-top: 145%;
    overflow: hidden;
}

.anime-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.anime-card:hover .anime-card-image img {
    transform: scale(1.1);
}

.anime-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.anime-card:hover .anime-card-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.anime-card:hover .play-btn {
    transform: scale(1);
}

.anime-card-meta {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.anime-type,
.anime-episodes {
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.anime-card-body {
    padding: 15px;
}

.anime-card-title {
    font-size: 16px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-card .anime-card-title,
.anime-card .anime-card-title:visited {
    color: #fff !important;
}

.anime-card-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.anime-rating,
.anime-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.anime-rating i {
    color: var(--warning);
}

/* Badge */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: var(--dark);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

.alert-success {
    background: rgba(67, 233, 123, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(249, 62, 62, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(79, 172, 254, 0.2);
    border: 1px solid #4facfe;
    color: #4facfe;
}

/* Footer */
.main-footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.disclaimer {
    margin-top: 10px;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-form input {
        width: 180px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 10px 0;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .search-form {
        display: none;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .slide-poster {
        width: 200px;
        height: 280px;
    }
    
    .slide-details h1 {
        font-size: 28px;
    }
    
    .slide-details p {
        font-size: 14px;
    }
    
    .slide-meta {
        justify-content: center;
        gap: 10px;
    }
    
    .meta-item {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .slide-actions {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 20px;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .anime-slide {
        flex: 0 0 calc((100% - (2 * 20px)) / 3); /* Corrected for 3 slides and 2 gaps */
    }
    
    .anime-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .anime-slider-btn.prev {
        left: 10px;
    }
    
    .anime-slider-btn.next {
        right: 10px;
    }
    
    .blog-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-content-home {
        padding: 20px;
    }
    
    .blog-title-home {
        font-size: 16px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .anime-section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .slide-poster {
        width: 150px;
        height: 210px;
    }
    
    .slide-details h1 {
        font-size: 22px;
    }
    
    .slide-details p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .slide-meta {
        gap: 8px;
    }
    
    .meta-item {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .pagination {
        padding: 10px 15px;
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pagination-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .pagination-info {
        font-size: 12px;
    }
    
    .anime-slide {
        flex: 0 0 calc((100% - (1 * 20px)) / 2); /* Corrected for 2 slides and 1 gap */
    }
    
    .anime-slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .anime-slider-btn.prev {
        left: 5px;
    }
    
    .anime-slider-btn.next {
        right: 5px;
    }
    
    .blog-grid-home {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .blog-content-home {
        padding: 15px;
    }
    
    .blog-title-home {
        font-size: 15px;
    }
    
    .blog-meta-home {
        gap: 10px;
    }
    
    .blog-meta-home span {
        font-size: 11px;
    }
    
    .user-btn span {
        display: none;
    }
}

/* Anime Detail Page */
.anime-detail {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.anime-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.anime-cover-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 30, 0.9) 0%,
        rgba(15, 15, 30, 0.6) 15%,
        rgba(15, 15, 30, 0.4) 30%,
        rgba(15, 15, 30, 0.3) 50%,
        rgba(15, 15, 30, 0.5) 70%,
        rgba(15, 15, 30, 0.8) 85%,
        rgba(15, 15, 30, 0.95) 100%
    );
    z-index: 2;
}

.anime-detail-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: rgba(45, 45, 68, 0.75);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    padding: 30px;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.anime-detail-poster {
    position: relative;
}

.anime-detail-poster img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.anime-detail-info h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.anime-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.anime-detail-meta span {
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 14px;
}

.anime-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.anime-description {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 20px 0;
}

.anime-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.category-tag {
    padding: 8px 15px;
    background: var(--primary);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    transition: all 0.3s;
}

.category-tag:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.anime-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Episodes List */
.episodes-section {
    margin-top: 40px;
    background: var(--dark-light);
    border-radius: 15px;
    padding: 30px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.episode-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.episode-number {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.episode-title {
    font-size: 14px;
    color: #fff;
}

/* Ensure links on cards remain readable in all states */
.anime-card-link,
.anime-card-link:visited,
.episode-item,
.episode-item:visited,
.episode-item .episode-title,
.episode-item .episode-title:visited {
    color: #fff !important;
    text-decoration: none;
}

/* Watch Page */
.watch-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.video-player {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.watch-info {
    background: var(--dark-light);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.watch-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.watch-navigation {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Login/Register Page */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: var(--dark-light);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.6);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Dropdown Option Stilleri */
.form-control option {
    background: #2d2d44;
    color: white;
    padding: 8px 12px;
}

select.form-control option {
    background: #2d2d44;
    color: white;
}

select.form-control option:hover {
    background: #667eea;
    color: white;
}

select.form-control option:checked {
    background: #667eea;
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Profile Page */
.profile-container {
    padding: 40px 0;
}

/* New profile layout */
.profile-sidebar .sidebar-card{
    background: var(--dark-light);
    border-radius: 15px;
    padding: 20px;
}
.avatar-ring{display:flex;justify-content:center;align-items:center;margin-bottom:10px}
.avatar-ring img{width:120px;height:120px;border-radius:50%;object-fit:cover;border:4px solid var(--primary)}
.sidebar-name{font-size:22px;margin:6px 0;text-align:center}
.rank-pill{display:inline-flex;gap:6px;align-items:center;background:rgba(102,126,234,.2);color:#fff;border-radius:20px;padding:6px 10px;font-size:12px}
.sidebar-stats{display:flex;gap:14px;margin:12px 0;justify-content:center}
.sidebar-stats div{display:flex;flex-direction:column;gap:2px;align-items:center}
.sidebar-stats strong{font-size:24px;background:var(--primary);color:#fff;border-radius:8px;padding:8px 12px;min-width:40px;text-align:center}
.progress-box .label{color:rgba(255,255,255,.7);font-size:12px;margin-bottom:6px}
.progress-box .bar{height:10px;background:rgba(255,255,255,.1);border-radius:6px;overflow:hidden}
.progress-box .bar span{display:block;height:100%;background:var(--primary)}
.progress-box .small{color:rgba(255,255,255,.6);font-size:11px;margin-top:4px}
.sidebar-title{margin-top:20px;margin-bottom:10px}
.sidebar-bio{color:rgba(255,255,255,.75)}
.social-icons{display:flex;gap:12px;justify-content:center;margin:8px 0 20px 0}
.social-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:rgba(102,126,234,.2);color:#fff;border-radius:50%;text-decoration:none;transition:all 0.3s ease;font-size:18px}
.social-icon:hover{background:var(--primary);transform:translateY(-2px)}
.pill-btn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);color:#fff;text-decoration:none;padding:8px 12px;border-radius:999px}
.pill-btn.primary{background:linear-gradient(135deg,var(--primary),var(--secondary));border:none}
.pill-btn.outline{background:transparent;border:1px solid rgba(255,255,255,.2)}

/* Yorumlar Bölümü */
.comments-section {
    background: var(--dark-light);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.comments-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
}

.comment-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    resize: vertical;
}

.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-prompt {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.login-prompt p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.login-prompt a {
    color: var(--primary);
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}


.comment-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.comment-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.comment-box:hover .comment-avatar img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.comment-info {
    flex: 1;
}

.comment-author {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.comment-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 400;
}

.comment-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 15px 0;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.comment-actions {
    margin-top: 10px;
}

.reply-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.reply-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    resize: vertical;
    font-size: 14px;
}

.reply-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.replies {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.reply-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.reply-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.reply-box .comment-avatar img {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.reply-box .comment-author {
    font-size: 14px;
    font-weight: 500;
}

.reply-box .comment-date {
    font-size: 11px;
}

.reply-box .comment-content {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-left: 2px solid rgba(102, 126, 234, 0.5);
    margin: 10px 0;
}

.no-comments {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.no-comments-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.no-comments p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.comment-form h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-prompt-icon {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.profile-main .main-card{background:var(--dark-light);border-radius:15px;padding:16px}
.main-tabs{display:flex;align-items:center;gap:10px;margin-bottom:10px}

/* Profile - list cards */
.list-cards{display:flex;flex-direction:column;gap:10px}
.list-card{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:14px 16px}
.list-card-left{display:flex;align-items:center;gap:10px}
.list-title{font-weight:600}
.list-badge{font-size:12px;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.12);text-transform:capitalize}
.visibility-public{background:rgba(67,233,123,.25)}
.visibility-unlisted{background:rgba(255,255,255,.15)}
.visibility-private{background:rgba(249,62,62,.25)}
.list-card-actions{display:flex;gap:8px}

/* Selectable anime cards (used in list-create and list-edit) */
label.anime-card{border:2px solid transparent; position:relative;}
label.anime-card.selected{border-color: var(--primary); box-shadow: 0 0 0 2px rgba(102,126,234,.35);} 
label.anime-card.selected::after{content:'✓'; position:absolute; top:8px; right:8px; width:24px; height:24px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700;}

.profile-header {
    background: var(--dark-light);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}

.profile-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab {
    padding: 15px 25px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab:hover,
.tab.active {
    color: white;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .anime-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
}

/* Bölümler Başlığı */
.episodes-section h2 {
    margin-bottom: 20px;
}

/* Modern İstatistik Kartları */
.anime-stats-modern {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    min-width: 100px;
    flex: 1;
    max-width: 150px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.stat-icon {
    font-size: 18px;
    opacity: 0.9;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive İstatistik Kartları */
@media (max-width: 768px) {
    .anime-stats-modern {
        gap: 8px;
        flex-direction: column;
    }
    
    .stat-card {
        padding: 10px 14px;
        min-width: auto;
        max-width: none;
        flex: none;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .stat-icon {
        font-size: 16px;
    }
}

/* Sezon Tabları */
.season-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.season-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.season-tab:hover {
    background: #e9ecef;
    color: var(--primary);
    transform: translateY(-2px);
}

.season-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.season-tab.active:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.episode-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.season-tab.active .episode-count {
    background: rgba(255, 255, 255, 0.3);
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.no-episodes p {
    font-size: 16px;
    margin: 0;
}

/* Responsive Sezon Tabları */
@media (max-width: 768px) {
    .season-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .season-tab {
        justify-content: center;
        padding: 12px 16px;
        border-radius: 8px;
    }
}

/* Blog Sayfası Stilleri */
.blog-grid {
    display: grid;
    gap: 30px;
}

.blog-card {
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    gap: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-height: 200px;
    align-items: stretch;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.blog-image {
    flex-shrink: 0;
    width: 300px;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.blog-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.3;
}

.blog-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-meta span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--primary);
}

.blog-excerpt {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
        gap: 0;
    }
    
    .blog-image {
        width: 100%;
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 20px;
    }
    
    .blog-meta {
        gap: 10px;
    }
    
    .blog-meta span {
        font-size: 12px;
    }
}

/* Blog Single Sayfası Stilleri */
.blog-single-container {
    padding: 40px 0;
}


.blog-single-article {
    background: var(--dark-light);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.blog-single-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
    font-weight: 700;
}

.blog-single-meta {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.blog-single-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.blog-single-meta i {
    color: var(--primary);
    width: 16px;
}

.blog-single-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-single-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.blog-single-image:hover img {
    transform: scale(1.02);
}

.blog-single-text {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-single-text p {
    margin-bottom: 20px;
}

.blog-single-text h1,
.blog-single-text h2,
.blog-single-text h3,
.blog-single-text h4,
.blog-single-text h5,
.blog-single-text h6 {
    color: white;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.blog-single-text h1 { font-size: 28px; }
.blog-single-text h2 { font-size: 24px; }
.blog-single-text h3 { font-size: 20px; }
.blog-single-text h4 { font-size: 18px; }

.blog-single-text ul,
.blog-single-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-single-text li {
    margin-bottom: 8px;
}

.blog-single-text blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.blog-single-text code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.blog-single-text pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-single-text pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Blog Single */
@media (max-width: 768px) {
    
    .blog-single-article {
        padding: 25px;
    }
    
    .blog-single-title {
        font-size: 28px;
    }
    
    .blog-single-meta {
        gap: 15px;
    }
    
    .blog-single-meta span {
        font-size: 13px;
    }
    
    .blog-single-text {
        font-size: 15px;
    }
    
    .blog-single-text h1 { font-size: 24px; }
    .blog-single-text h2 { font-size: 20px; }
    .blog-single-text h3 { font-size: 18px; }
}

/* Anime Country Styles */
.anime-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.anime-country {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-left: 20px;
}

.anime-country i {
    font-size: 12px;
}

.country-flag {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Bildirim Dropdown Styles */
.notification-dropdown {
    position: relative;
    margin-right: 15px;
}

.notification-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 400px;
    z-index: 1000;
    display: none;
    border: 1px solid #e0e0e0;
}

.notification-menu.show {
    display: block;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.mark-all-read {
    background: none;
    border: none;
    color: #667eea;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mark-all-read:hover {
    background: rgba(102, 126, 234, 0.1);
}

.notification-list {
    max-height: 250px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f8ff;
    border-left: 3px solid #667eea;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    color: #999;
    font-size: 11px;
}

.notification-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.notification-footer {
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.notification-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
}

.notification-footer a:hover {
    text-decoration: underline;
}

.notification-empty {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.notification-empty i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ccc;
}

.notification-item.clickable {
    cursor: pointer;
    position: relative;
}

.notification-item.clickable:hover {
    background: #e3f2fd !important;
    transform: translateX(2px);
}

.notification-link {
    position: absolute;
    top: 12px;
    right: 15px;
    color: #667eea;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-item.clickable:hover .notification-link {
    opacity: 1;
}

.notification-item.clickable .notification-link i {
    font-size: 10px;
}

@media (max-width: 768px) {
    .anime-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .anime-country {
        margin-left: 0;
        align-self: flex-start;
    }
}