:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-color: #dcdde1;
    --card-background: #ffffff;
    --header-height: 60px;
    --container-width: 1200px;
    --spacing-unit: 1rem;
    --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #5352ed 100%);
    --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #1e272e 100%);
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        linear-gradient(rgba(245, 246, 250, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 246, 250, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
    background-attachment: fixed;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

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

.btn-primary:hover {
    background-color: #3a7bc8;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1a2530;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Header Styles */
.site-header {
    background-color: var(--card-background);
    box-shadow: var(--shadow-small);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.main-nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.search-bar {
    flex: 0 1 400px;
}

.search-bar form {
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-bar button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Banner */
.hero-banner {
    background-image: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 8rem 0 4rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Main Content Styles */
.site-main {
    padding: var(--spacing-unit) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.section-header .view-all {
    font-weight: 500;
    color: var(--primary-color);
}

.hero-section {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
}

.manga-info {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.manga-cover {
    position: relative;
}

.manga-cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
}

.manga-rating {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-background);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-small);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.manga-rating .stars {
    color: #f1c40f;
    margin-bottom: 0.25rem;
}

.manga-details h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.manga-metadata {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem 1rem;
}

.manga-metadata p {
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.ongoing {
    background-color: #2ecc71;
    color: white;
}

.status-badge.completed {
    background-color: #3498db;
    color: white;
}

.genre-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 16px;
    margin: 0.25rem;
    font-size: 0.875rem;
    transition: transform var(--transition-fast);
}

.genre-tag:hover {
    transform: translateY(-2px);
}

.manga-synopsis {
    margin-top: 1.5rem;
    line-height: 1.7;
}

.manga-synopsis h2 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.read-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Latest Chapters Section */
.latest-chapters-section {
    margin-bottom: 3rem;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.chapter-card {
    background-color: var(--card-background);
    border-radius: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.chapter-card a {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-color);
}

.chapter-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.chapter-date {
    font-size: 0.875rem;
    color: #666;
}

.chapter-new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Characters Section */
.characters-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.characters-section .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.characters-section .section-header h2 {
    color: white;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.character-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-image {
    height: 200px;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.character-info {
    padding: 1.5rem;
}

.character-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.character-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.character-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

.character-details {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.character-details p {
    margin-bottom: 0.25rem;
}

/* All Chapters Section */
.all-chapters-section {
    margin-bottom: 3rem;
}

.chapters-list {
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.chapters-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.chapters-list-body {
    max-height: 600px;
    overflow-y: auto;
}

.chapter-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
    color: var(--text-color);
}

.chapter-row:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

.chapter-row:last-child {
    border-bottom: none;
}

.chapter-col {
    font-weight: 500;
}

.date-col {
    color: #666;
    font-size: 0.9rem;
}

/* Footer Styles */
.site-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 1rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 0.5rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .manga-info {
        grid-template-columns: 200px 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .manga-info {
        grid-template-columns: 1fr;
    }

    .manga-cover {
        max-width: 250px;
        margin: 0 auto 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .search-bar {
        flex: 0 1 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .read-buttons {
        flex-direction: column;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section,
    .chapters-section {
        padding: 1rem;
    }

    .manga-details h1 {
        font-size: 1.5rem;
    }

    .chapters-grid {
        grid-template-columns: 1fr;
    }
    
    .chapters-list-header,
    .chapter-row {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .hero-banner {
        padding: 6rem 0 3rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.latest-chapters-section,
.characters-section,
.all-chapters-section {
    animation: fadeIn 0.6s ease-out;
} 