@import url('fonts.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* DC Color Palette */
    --dc-blue: #0078f0;
    --dc-red: #dc143c;
    --dc-gold: #ffd700;
    --dc-silver: #c0c0c0;

    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-card: #1e1e1e;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;

    /* Accent Colors */
    --accent-primary: var(--dc-blue);
    --accent-secondary: var(--dc-red);
    --accent-gold: var(--dc-gold);

    /* Shadows and Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-blue: 0 0 20px rgba(0, 120, 240, 0.3);
    --shadow-red: 0 0 20px rgba(220, 20, 60, 0.3);

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #0078f0, #0056b3);
    --gradient-red: linear-gradient(135deg, #dc143c, #a0102a);
    --gradient-dark: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header a {
    text-decoration: none;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-logo {
    width: 35px;
    height: 35px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-blue);
}

.logo-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 120, 240, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* */
.main-banner {
    position: relative;
    padding: 200px 0;
    background: var(--gradient-dark);
    overflow: hidden;
}

.main-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 120, 240, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 20, 60, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 16px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.main-actions {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.main-btn {
    font-size: 1.4rem;
    letter-spacing: 2px;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-lg);
}

.main-btn.primary {
    background: var(--gradient-blue);
    color: #fff;
}

.main-btn.primary:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-blue);
}

.main-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
}

.main-btn.secondary:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-blue);
}

/* Comics List */
.comics-list-page {
    padding: 20px 0 100px;
    background: var(--bg-primary);
}

.comics-list-page .section-title {
    margin-bottom: 26px;
    text-align: center;
}

.comics-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 48px 40px;
    justify-content: center;
    padding-top: 10px;
}

/* Comic Card */
.comic-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.comic-card-cover {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.comic-card-cover img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.comic-card:hover .comic-card-cover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-blue);
}

.comic-card-info {
    margin-top: 16px;
    text-align: center;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comic-title-ru {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;    
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin-bottom: 4px;    
}

.comic-title-en {
    font-family: 'Bebas Neue', cursive;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    line-height: 1.15;

    display: block;
    word-break: break-word;
    white-space: normal;    
}

/* */
.series-info {
    padding: 30px 0 10px 0;
}

.series-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
}

.series-cover img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.series-data h1.title-ru {
    font-size: 2.5rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 6px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.series-data h2.title-en {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 16px;
    font-style: italic;
}

.series-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 3px solid var(--accent-primary);
}

.series-meta div {
    display: flex;
    gap: 12px;
}

.series-meta .span-l {
    width: 200px;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.series-meta .span-r {
    font-size: 1.05rem;
}

.series-description {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 32px;
}

.series-actions {
    display: flex;
    gap: 16px;
}

.series-actions .btn:hover {
    background: var(--accent-secondary);
    color: white;
}

.btn {
    padding: 12px 20px;
    background: var(--accent-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn.secondary {
    background: var(--bg-tertiary);
}

.series-issues {
    padding: 5px 0;
    background: var(--bg-secondary);
    min-height: 100px;
}

.series-issues h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.issues-table {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.issue-line {
    display: grid;
    grid-template-columns: 60px 1fr 80px 100px;
    padding: 12px 20px;
}

.issue-line {
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--bg-tertiary);
    font-size: 1.1rem;
}

.issue-line:hover {
    background: rgba(0, 120, 240, 0.08);
}

.issue-line span:first-child {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.1rem;
    color: var(--accent-primary);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 16px 0;
    overflow-x: auto;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.pagination .page-btn,
.pagination .prev,
.pagination .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #1e1e1e;
    color: #b0b0b0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pagination .page-btn:hover,
.pagination .prev:hover,
.pagination .next:hover {
    background: #0078f0;
    color: #fff;
}

.pagination .page-btn.active {
    background: #0078f0;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}

.pagination .pagination-dots {
    padding: 8px 14px;
    color: #b0b0b0;
    border-radius: 6px;
    font-weight: 500;
    cursor: default;
}

/* Reader*/
.comic-title-wrapper {
    text-align: center;
    margin: 16px 0 24px 0;
}

.comic-title-ru a {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-decoration: none;
}

.comic-title-ru a:hover {
    text-decoration: underline;
}

.comic-title-en {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.comic-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.nav-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.center-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    border-radius: 6px;
    padding: 10px 36px 10px 12px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
}

.page-select-wrapper select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.page-select-wrapper {
    position: relative;
}

.page-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.search-btn {
    background: var(--bg-card);
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.search-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.comic-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.comic-image-wrapper img {
    max-width: 100vw;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-primary);
    padding: 48px 0 24px;
    margin-top: 8px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dc-logo-footer {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-blue);
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.link-group h4 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.125rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--bg-tertiary);
    color: var(--text-muted);
}

/* Zoom */
.zoomed-image-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 10px;
    overflow: hidden;
}

.zoomed-image-container.visible {
    visibility: visible;
    opacity: 1;
}

.zoomed-image {
    position: absolute;
    max-width: none;
    max-height: none;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
    left: 0;
    top: 0;
}

.close-area {
    position: absolute;
    top: 0;
    right: 0;
    width: 10%;
    height: 100%;
    visibility: hidden;
}

.close-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    cursor: pointer;

    width: 60px;
    height: 60px;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: 30px;
    right: 80px;

    transition: background-color 0.3s ease;

    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6);
    text-shadow: 1px 1px 1px black, 0 0 10px black;
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

.zoomed-image-container:hover .close-area {
    visibility: visible;
}

/**/
.static-page {
    padding: 3rem 1rem;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 12px;
    line-height: 1.8;
    font-size: 1.05rem;
    box-shadow: var(--shadow-dark);
    min-height: 700px;
}

.static-page__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--dc-blue);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
}

.static-page p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.static-page ul {
    list-style-type: disc;
    margin: 1rem 0 1.5rem 2rem;
}

.static-page li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.static-page strong {
    color: var(--text-primary);
    font-weight: 600;
}

.static-page .highlight {
    color: var(--dc-gold);
    font-weight: bold;
}

.sitemap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* левая / правая половина */
    gap: 40px;
    align-items: start;
}

/* Колонка */
.sitemap>div {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 18px 22px 24px;
    box-shadow: var(--shadow-lg);
}

/* Буква */
.sitemap .highlight {
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: var(--accent-gold);
    border-bottom: 2px solid var(--bg-tertiary);
    padding-bottom: 6px;
}

.sitemap ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap li {
    margin-bottom: 7px;
}

.sitemap a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.35;
}

.sitemap a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* 404 */
.featured404 {
    padding: 220px 0;
    text-align: center;
}

.section-title404 {
    font-family: 'Bebas Neue', cursive;
    font-size: 8rem;
    letter-spacing: 6px;
    color: var(--accent-primary);
}