* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 40px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
}

header h1 a {
    color: #333;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

nav a:hover {
    color: #333;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero-avatar {
    margin-bottom: 20px;
}

.hero-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.tagline {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Comics Grid */
.comics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.comic-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.comic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.comic-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transform: scale(1.15);
}

.comic-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
}

.comic-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: capitalize;
    color: #222;
}

.comic-panels-count {
    font-size: 14px;
    color: #999;
}

/* Comic Page */
.comic-page {
    max-width: 1200px;
    margin: 0 auto 80px;
}

.comic-header {
    text-align: center;
    margin-bottom: 40px;
}

.comic-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.back-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #333;
}

.comic-panels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.comic-panel {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
    max-height: 400px;
    object-fit: contain;
}

/* About Page */
.about-page {
    max-width: 700px;
    margin: 0 auto 80px;
    background: white;
    padding: 60px;
    border-radius: 4px;
    border: 3px solid #333;
}

.about-avatar {
    text-align: center;
    margin-bottom: 40px;
}

.about-avatar img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.about-page h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-page h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-page p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    text-align: center;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .comics-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
    }

    .about-page {
        padding: 40px 30px;
    }

    header .container {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .comics-grid {
        grid-template-columns: 1fr;
    }

    .tagline {
        font-size: 18px;
    }

    .about-page {
        padding: 30px 20px;
    }
}
