/* Common styles for anime.html, cartoon.html, and latest.html */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ffd91b;
    --secondary-color: #ffdd00;
    --accent-color: #eeee00;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #222;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --hover-transform: translateY(-8px);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 5rem auto 2rem;
    padding: 0 1rem;
    animation: fadeIn 0.8s ease-in-out;
}

/* Page Description */
.page-description {
 
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #555;
    font-size: 1.1rem;
    animation: fadeIn 1s ease-in-out 0.2s both;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Card Styling */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.8));
    opacity: 0;
    z-index: 0;
    transition: opacity var(--transition-speed);
    pointer-events: none;
}

.card:hover::before {
    opacity: 0.3;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover img {
    transform: scale(1.05);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
    opacity: 1;
}

.watch-btn {
    color: white;
    background: rgba(243, 255, 5, 0.8);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.card:hover .watch-btn {
    transform: translateY(0);
    opacity: 1;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-content {
    padding: 1.5rem;
    position: relative;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.card:hover .card-content h3 {
    color: var(--primary-color);
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
}

/* Quality Tags */
.quality-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.quality-tag {
    background: linear-gradient(135deg, var(--secondary-color), #d38600);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 114, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.quality-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 114, 255, 0.4);
}

/* Page Title */
.page-title {
    margin: 1.5rem 0;
    margin-top: 20px;
    font-size: 2.2rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-top: 40px;
    padding-bottom: 15px;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    clear: both;
    z-index: 10;
}

.page-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Release Date */
.release-date {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.release-date::before {
    content: "\f073";
    font-family: "Font Awesome 5 Free";
    color: var(--primary-color);
}

/* Load More Button */
.load-more {
    text-align: center; 
    margin: 3rem 0;
}

.view-all-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-position 0.3s;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 217, 27, 0.3);
    background-size: 200% auto;
    position: relative;
    overflow: hidden;
}

.view-all-btn.show-less {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Animation for Show Less button */
.view-all-btn.show-less i {
    animation: bounce 1s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.view-all-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(255, 94, 98, 0.4);
}

.view-all-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

.view-all-btn::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 100%;
    top: 0;
    left: -100px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shine 3s infinite;
}

/* Hover effect for card links */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        left: -100px;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Card entrance animations */
.card {
    opacity: 0;
    animation: cardFadeIn 0.6s forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer enhancement */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'MyFont2', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: #ffd500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
}



.footer-links li:hover::before {
    transform: translateX(3px);
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    font-family: 'MyFont3', sans-serif;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff200;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    background-color: #333;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #f0dc00;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #b3b3b3;
    font-family: 'MyFont3', sans-serif;
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-description {
    color: #b3b3b3;
    font-family: 'MyFont3', sans-serif;
    line-height: 1.6;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .footer-bottom {
        margin-top: 30px;
    }
}

/* Responsive design */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }

    .page-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .card img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 0.8rem;
    }

    .card {
        max-width: 100%;
    }
}

/* Hidden cards for load more functionality */
.card-link.hidden {
    display: none;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-fadeIn {
    animation: cardFadeIn 0.6s forwards;
} 