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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f0f4f8;
    position: relative;
    min-height: 100vh;
}

/* Blue-Lock Theme Colors */
:root {
    --blue-lock-primary: #1B2951;
    --blue-lock-secondary: #2E4A8E;
    --blue-lock-accent: #4A90E2;
    --blue-lock-light: #6BA3E5;
    --blue-lock-dark: #0F1B3C;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --background-light: #f8fafb;
    --border-color: #e0e8f0;
}

/* Background Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(46, 74, 142, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(27, 41, 81, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(74, 144, 226, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--blue-lock-dark) 0%, var(--blue-lock-primary) 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: #a8c0e0;
}

.breadcrumb a {
    color: #a8c0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb > * {
    display: inline;
}

.breadcrumb > *:not(:last-child)::after {
    content: " > ";
    margin: 0 5px;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

article {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

article::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

/* Typography */
h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: var(--blue-lock-dark);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.2;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-lock-accent), var(--blue-lock-secondary));
    border-radius: 2px;
}

h2 {
    font-size: 24px;
    color: var(--blue-lock-secondary);
    margin: 40px 0 10px;
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
}

h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 10px 0 20px;
    font-weight: 600;
}

h4 {
    font-size: 18px;
    color: var(--blue-lock-primary);
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main Image */
.main-image {
    margin: 30px 0;
    text-align: center;
}

.main-image img,
figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

figcaption {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
}

/* Zero Members List Table */
.zero-members-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.zero-members-list thead {
    background: var(--blue-lock-primary);
    color: white;
}

.zero-members-list th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.zero-members-list tbody tr {
    background: white;
    transition: all 0.3s ease;
}

.zero-members-list tbody tr:nth-child(even) {
    background: var(--background-light);
}

.zero-members-list tbody tr:hover {
    background: #e8f0fe;
    transform: translateX(5px);
}

.zero-members-list td {
    padding: 12px 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.zero-members-list td img {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.zero-members-list td a:hover img {
    transform: scale(1.1);
}

.zero-members-list td a {
    text-decoration: none;
    color: inherit;
}

.zero-members-list td a:hover {
    color: var(--blue-lock-accent);
}

/* Player Cards */
.player-details {
    margin-top: 40px;
}

.player-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--blue-lock-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.player-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.player-card:hover::before {
    transform: scaleY(1);
}

.player-card h4 {
    position: relative;
    padding-left: 40px;
}

.player-card .number {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--blue-lock-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.player-info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.player-info img {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.player-data {
    flex: 1;
}

.player-data .team {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.player-data .name {
    font-size: 20px;
    font-weight: bold;
    color: var(--blue-lock-dark);
    margin-bottom: 5px;
}

.player-data .catchphrase {
    font-size: 16px;
    color: var(--blue-lock-accent);
    font-style: italic;
}

.player-card .description {
    line-height: 1.8;
    color: var(--text-dark);
}

/* Ruby Text Styling */
ruby {
    ruby-align: center;
}

ruby rt {
    font-size: 0.6em;
    color: var(--text-light);
    font-weight: normal;
}

/* Links */
a {
    color: var(--blue-lock-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--blue-lock-secondary);
}

article a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-lock-accent);
    transition: width 0.3s ease;
}

article a:hover::after {
    width: 100%;
}

/* Section Styling */
section {
    margin: 40px 0;
    padding: 20px 0;
    position: relative;
}

section:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Related Links */
.related-links {
    background: var(--background-light);
    border-radius: 15px;
    padding: 40px;
    margin-top: 60px;
    border: 1px solid var(--border-color);
}

.related-links h3 {
    text-align: center;
    color: var(--blue-lock-secondary);
    margin-bottom: 30px;
}

.links-grid {
    margin-top: 30px;
}

.links-grid h4 {
    color: var(--blue-lock-primary);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    font-size: 18px;
}

.links-grid h4:first-child {
    margin-top: 0;
}

.links-grid ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.links-grid ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.links-grid ul li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--blue-lock-accent);
    font-size: 12px;
}

.links-grid ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.links-grid ul li a:hover {
    color: var(--blue-lock-accent);
    padding-left: 5px;
}

/* Related Articles Table */
.related-articles {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 20px;
}

.related-articles thead {
    background: var(--blue-lock-primary);
    color: white;
}

.related-articles th {
    padding: 10px;
    text-align: left;
    font-weight: normal;
    white-space: nowrap;
}

.related-articles tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.related-articles tbody tr:hover {
    background: #f0f6ff;
}

.related-articles td {
    padding: 8px 10px;
    vertical-align: top;
}

/* Footer */
footer.copy {
    background: var(--blue-lock-dark);
    color: #e0e8f0;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

footer.copy::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-lock-accent), var(--blue-lock-light), var(--blue-lock-accent));
}

footer.copy p {
    margin: 10px 0;
    line-height: 1.8;
}

footer.copy strong {
    color: var(--blue-lock-light);
}

footer.copy a {
    color: var(--blue-lock-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer.copy a:hover {
    color: white;
}

.contact-info,
.usage-terms {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 0 10px;
    }

    article {
        padding: 20px;
    }

    h1 {
        font-size: 28px;
    }

    .zero-members-list {
        font-size: 14px;
    }

    .zero-members-list th,
    .zero-members-list td {
        padding: 10px;
    }

    .player-info {
        flex-direction: column;
        text-align: center;
    }

    .player-card h4 {
        padding-left: 0;
        text-align: center;
    }

    .player-card .number {
        position: static;
        margin: 0 auto 10px;
        transform: none;
    }

    .related-articles {
        display: none;
    }

    .related-links {
        padding: 20px;
    }

    .related-links p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
}

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

article > * {
    animation: fadeIn 0.6s ease-out backwards;
}

article > *:nth-child(1) { animation-delay: 0.1s; }
article > *:nth-child(2) { animation-delay: 0.2s; }
article > *:nth-child(3) { animation-delay: 0.3s; }
article > *:nth-child(4) { animation-delay: 0.4s; }
article > *:nth-child(5) { animation-delay: 0.5s; }

/* Print Styles */
@media print {
    body {
        background: white;
    }

    article::before,
    body::before {
        display: none;
    }

    .player-card {
        page-break-inside: avoid;
    }

    section {
        page-break-inside: avoid;
    }
}
