/* Main Styling */
:root {
    --primary-color: #6200ee;
    --primary-dark: #3700b3;
    --primary-light: #bb86fc;
    --secondary-color: #03dac6;
    --background: #f5f5f5;
    --surface: #ffffff;
    --error: #b00020;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
}

/* Header/Navigation */
.site-header {
    background-color: var(--surface);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Section Styling */
section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* Anime Cards */
.anime-row {
    margin-bottom: 1rem;
}

.anime-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 2rem;
    background-color: var(--surface);
    height: 100%;
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.anime-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.anime-image {
    position: relative;
    height: 0;
    padding-bottom: 140%; /* For poster-style images (10:14 ratio) */
    overflow: hidden;
}

.anime-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.anime-card:hover .anime-image img {
    transform: scale(1.05);
}

.anime-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.btn-add-to-list {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-add-to-list:hover {
    background-color: var(--primary-dark);
}

.anime-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.anime-details {
    padding: 1rem;
}

.anime-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.anime-title a:hover {
    color: var(--primary-color);
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.anime-rating i {
    color: #ffc107;
    margin-right: 3px;
}

/* Lazy Loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Footer */
.site-footer {
    background-color: #212121;
    color: #fff;
    padding: 3rem 0;
}

/* Login/Register forms */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.auth-form .form-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Custom Error/Success Messages */
.alert {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #ffebee;
    color: var(--error);
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* User Dropdown Styling */
.nav-auth .dropdown .btn-outline-primary {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-auth .dropdown .btn-outline-primary i {
    color: var(--primary-color);
}

.nav-auth .dropdown .dropdown-menu {
    padding: 0.5rem 0;
}

.nav-auth .dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.nav-auth .dropdown .dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination .page-item .page-link {
    color: var(--text-primary);
    border-color: var(--border-color);
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Quick Add Modal */
.quick-add-anime {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.quick-add-image {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.quick-add-anime h4 {
    font-size: 1.2rem;
    margin: 0;
}

/* Advertisement containers */
.ad-container {
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    background-color: #f0f0f0;
    padding: 1rem 0;
    border-radius: 4px;
    margin: 1rem 0;
}
