/* Anime Kart Stilleri */
.anime-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
    background-color: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    aspect-ratio: 2/3;
    max-height: 360px;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    contain: paint;
}

/* Bölüm Başlıkları */
.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.anime-card:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .anime-card:hover {
        transform: none;
    }
}

.anime-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anime-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: none;
}

.anime-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.anime-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.anime-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 3rem;
    will-change: opacity;
    pointer-events: none;
}

.anime-card:hover .anime-details {
    opacity: 1;
    pointer-events: auto;
}

.anime-details p {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Anime Kart Grid Düzenlemesi */
.featured-anime .col-md-4 {
    padding: 0 10px;
}

/* Haber Slider Stilleri */
.news-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.news-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
    width: 5%;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
}

#newsCarousel .carousel-indicators {
    bottom: -40px;
}

#newsCarousel .carousel-indicators button {
    background-color: var(--secondary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

#newsCarousel .carousel-indicators button.active {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .news-content {
        padding: 1rem;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
}

/* Most-liked Kart Stilleri */

.overlay-content p {
    margin: 5px 0;
    font-size: 0.85rem;
}

/* Most-liked Container Stilleri */
.most-likes {
    border: 1px solid #fff;
    width: 100%;
    padding: 0;
}

.most-liked-anime {
    width: 100%;
    padding: 0;
}

/* Sidebar Anime Kartları - Dikey Düzen */
.sidebar-anime-card {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
}

.sidebar-anime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Resim Wrapper */
.card-image-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.sidebar-anime-card:hover .card-image {
    transform: scale(1.05);
}

/* Gradient Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.9));
    pointer-events: none;
    opacity: 0.7;
}

/* Bilgi Container */
.card-info {
    padding: 12px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.95));
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-genre {
    font-size: 0.8rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.card-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat {
    font-size: 0.75rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.stat i {
    font-size: 0.7rem;
}

.most-liked-anime-card:hover{
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .most-liked-anime-card:hover {
        transform: none;
    }
}

.anime-actions {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    z-index: 2;
}

.anime-actions button {
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@supports (backdrop-filter: blur(5px)) {
    .anime-actions button {
        backdrop-filter: blur(5px);
    }
}

@media (max-width: 768px) {
    .anime-actions button {
        backdrop-filter: none;
    }
}

.anime-actions .btn-outline-danger {
    background: rgba(220, 53, 69, 0.1);
}

.anime-actions .btn-outline-primary {
    background: rgba(13, 110, 253, 0.1);
}

.anime-actions .btn-danger.active {
    background: rgba(220, 53, 69, 0.3);
}

.anime-actions .btn-primary.active {
    background: rgba(13, 110, 253, 0.3);
}

.anime-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .anime-actions button:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

.anime-actions button.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.anime-actions .btn-danger,
.anime-actions .btn-outline-danger {
    color: #fff;
}

.anime-actions .btn-primary,
.anime-actions .btn-outline-primary {
    color: #fff;
}

/* Detay sayfası için özel stil */
.anime-detail-container .anime-actions {
    position: static;
    justify-content: center;
    margin: 15px 0;
}

.anime-detail-container .anime-actions button {
    padding: 8px 20px;
    font-size: 1rem;
}

/* Detay sayfası için ek stiller */
.anime-detail-container .anime-actions {
    position: static;
    justify-content: center;
    margin: 15px 0;
}

.anime-detail-container .anime-actions button {
    padding: 8px 20px;
    font-size: 1rem;
}

/* Filtrelemelerin ve kartların container'ları için */
body.light-theme .nav,
body.light-theme .main-content,
body.light-theme .sidebar,
body.light-theme .search-container,
body.light-theme .theme-switch,
body.light-theme .filter-container,
body.light-theme .anime-cards-container {
    color: var(--light-primary-color) !important;

    background-color: var(--light-bg);
}

/* Kartlar için stil - koyu tema ile aynı */
body.light-theme .anime-card {
    background-color: var(--card-bg) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Kart içindeki tüm elementler için */
body.light-theme .anime-card *,
body.light-theme .anime-title,
body.light-theme .like-button,
body.light-theme .follow-button {
    color: var(--primary-color) !important;
}

/* Kartların hover efektleri */
body.light-theme .anime-card:hover {
    background-color: var(--hover-color) !important;
}

.anime-card .card-buttons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 3;
}

.anime-card .card-buttons button {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 32px;
    max-width: 80px;
    height: 24px;
    line-height: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-card .card-buttons button i {
    font-size: 12px;
    margin-right: 3px;
    flex-shrink: 0;
}

/* Prevent text overflow */
.anime-card .card-title {
    padding-right: 85px; /* Button width + padding */
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}





