/* Common styles for MoviesJoy2 Anime */
:root {
    --primary-color: #00B4D8;    /* Bright cyan - modern and fresh */
    --secondary-color: #FF6B6B;  /* Coral red - energetic accent */
    --accent-color: #FFD93D;     /* Bright yellow - playful highlight */
    --text-color: #2D3436;       /* Dark gray - clean and readable */
    --nav-text: #FFFFFF;         /* White for nav text */
    --nav-hover: #FFD93D;        /* Yellow for nav hover */
    --footer-bg: #FAFAFA;        /* Almost white for footer */
    --footer-text: #666666;      /* Darker gray for footer text */
    --main-bg: #F8F9FA;          /* Light gray for main background */
}

/* Custom Scrollbar Styles for Watch Page */
#anime-details .overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

#anime-details .overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 4px;
}

#anime-details .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

#anime-details .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Firefox Scrollbar for Watch Page */
#anime-details .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) rgba(31, 41, 55, 0.5);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--main-bg);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color), #0096C7);  /* Cyan gradient */
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 180, 216, 0.2);
    height: 64px;
    box-sizing: border-box;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 36px;
    margin-right: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-links a:hover {
    color: var(--nav-hover);
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scroll Container */
.scroll-container {
    flex: 1;
    margin-top: 64px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 15px;
}

/* Footer Styles */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 1rem;
    margin-top: auto;
    border-top: 1px solid #EEEEEE;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3b82f6;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--primary-color);
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.error-message button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.error-message button:hover {
    background-color: #0096C7;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 2.5rem;
    text-align: center;
}

.pagination-button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-ellipsis {
    color: #666;
    padding: 0 0.5rem;
    font-size: 0.9rem;
}

/* Responsive Pagination */
@media screen and (max-width: 640px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 2rem;
    }
} 