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

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f1a;
    color: #e8e8f0;
    line-height: 1.6;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffd93d;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #c8c8d0;
}

a {
    color: #4ecdc4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #ffd93d;
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background-color: #1a1a2e;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #e8e8f0;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #ffd93d;
    border-bottom-color: #ffd93d;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #e8e8f0;
    transition: 0.3s;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #a8a8b0;
}

.breadcrumb a {
    color: #4ecdc4;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 4rem 0;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #c8c8d0;
    margin-bottom: 2rem;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Guide Sections */
.guide-sections {
    padding: 4rem 0;
}

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

.guide-card {
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #3a3a6c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(255, 107, 107, 0.1);
}

.guide-card h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.guide-card ul {
    list-style: none;
    margin: 1rem 0;
}

.guide-card li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
    color: #c8c8d0;
}

.guide-card li:before {
    content: "▸";
    color: #4ecdc4;
    position: absolute;
    left: 0;
}

.guide-link {
    display: inline-block;
    margin-top: 1rem;
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.guide-link:hover {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Quick Links */
.quick-links {
    background: #16213e;
    padding: 4rem 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quick-card {
    background: linear-gradient(135deg, #1a1a2e, #2a2a4e);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #3a3a5c;
    transition: all 0.3s ease;
    display: block;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 217, 61, 0.1);
    border-color: #ffd93d;
}

.quick-card h3 {
    color: #ffd93d;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.quick-card p {
    font-size: 0.9rem;
    color: #a8a8b0;
    margin-bottom: 0;
}

/* Content Sections */
section {
    margin-bottom: 3rem;
}

.highlight-box {
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
    margin: 2rem 0;
}

.highlight-box img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #3a3a5c;
}

th {
    background: #2a2a4e;
    color: #ffd93d;
    font-weight: 600;
}

tr:hover {
    background: rgba(255, 107, 107, 0.05);
}

/* Cards and Grids */
.time-grid, .platform-list, .info-grid, .specs-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.time-zone, .platform-item, .info-card, .specs-card {
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #3a3a6c;
    text-align: center;
}

.time {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ecdc4;
}

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

/* Platform Cards */
.platform-card {
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #3a3a6c;
    text-align: center;
}

.platform-card.current {
    border-color: #4ecdc4;
    background: linear-gradient(135deg, #1e3f3e, #2a5c5c);
}

.platform-card.upcoming {
    border-color: #ffd93d;
    background: linear-gradient(135deg, #3f3f1e, #5c5c2a);
}

.platform-card.future {
    border-color: #a8a8b0;
    background: linear-gradient(135deg, #2e2e2e, #4a4a4a);
}

.status {
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.platform-card.current .status {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.platform-card.upcoming .status {
    background: rgba(255, 217, 61, 0.2);
    color: #ffd93d;
}

.platform-card.future .status {
    background: rgba(168, 168, 176, 0.2);
    color: #a8a8b0;
}

/* Score and Review Elements */
.score-overview {
    text-align: center;
    margin: 2rem 0;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.score-card {
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #3a3a6c;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    color: #4ecdc4;
    line-height: 1;
}

.score-label {
    color: #ffd93d;
    font-size: 0.9rem;
    margin: 0;
}

/* Review Items */
.review-item {
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid #4ecdc4;
}

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

.review-score {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

blockquote {
    font-style: italic;
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #ffd93d;
    color: #e8e8f0;
}

cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #a8a8b0;
}

.review-highlight {
    font-size: 0.9rem;
    color: #c8c8d0;
    margin-top: 0.5rem;
}

/* FAQ Section */
.faq-list {
    margin: 2rem 0;
}

.faq-item {
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3a3a6c;
}

.faq-item h3 {
    background: #2a2a4e;
    padding: 1rem 1.5rem;
    margin: 0;
    color: #ffd93d;
    font-size: 1.1rem;
}

.faq-item p {
    padding: 1rem 1.5rem;
    margin: 0;
    color: #c8c8d0;
}

/* Build-specific styles */
.build-card {
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid #3a3a6c;
    transition: transform 0.3s ease;
}

.build-card:hover {
    transform: translateY(-3px);
}

.build-card.beginner {
    border-left: 4px solid #4ecdc4;
}

.build-card.meta {
    border-left: 4px solid #ff6b6b;
}

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

.difficulty {
    color: #ffd93d;
    font-size: 0.9rem;
}

.weapon-info {
    font-size: 0.9rem;
    color: #a8a8b0;
    margin-bottom: 1rem;
}

.core-boons h4,
.magic-synergy h4,
.playstyle h4 {
    color: #ffd93d;
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
}

/* Update Timeline */
.update-timeline {
    margin: 2rem 0;
}

.update-entry {
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #3a3a6c;
}

.update-entry.major {
    border-left: 4px solid #ff6b6b;
}

.update-entry.minor {
    border-left: 4px solid #ffd93d;
}

.update-entry.hotfix {
    border-left: 4px solid #4ecdc4;
}

.update-header {
    background: #2a2a4e;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.update-type {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.update-type.major {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.update-type.minor {
    background: rgba(255, 217, 61, 0.2);
    color: #ffd93d;
}

.update-type.hotfix {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.update-date {
    color: #a8a8b0;
    font-size: 0.9rem;
}

.update-content {
    padding: 1.5rem;
}

.changes-section {
    margin: 1.5rem 0;
}

.changes-section h4 {
    color: #ffd93d;
    margin-bottom: 0.75rem;
}

.build-impact {
    background: rgba(255, 107, 107, 0.05);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Page Navigation */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #3a3a6c;
    gap: 1rem;
}

.nav-prev,
.nav-next {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1e1e3f, #2a2a5c);
    border: 1px solid #3a3a6c;
    border-radius: 6px;
    color: #4ecdc4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    background: linear-gradient(135deg, #2a2a5c, #3a3a7c);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #0a0a15;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #2a2a4e;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    color: #a8a8b0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: #1a1a2e;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #2a2a4e;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .time-grid,
    .score-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .update-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-navigation {
        flex-direction: column;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .guide-sections {
        padding: 2rem 0;
    }

    .guide-card,
    .build-card {
        padding: 1.5rem;
    }

    .score {
        font-size: 2rem;
    }

    .specs-comparison {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body {
        background-color: #000;
        color: #fff;
    }

    .nav-link:hover,
    .nav-link:focus {
        background-color: #fff;
        color: #000;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.nav-toggle:focus {
    outline: 2px solid #ffd93d;
    outline-offset: 2px;
}

/* Loading state */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0.8;
}

img[loading="lazy"]:not([src]) {
    opacity: 0.3;
}