/* WorldGate Theme - Medieval Fantasy */

.worldgate-page {
    --accent: #c9a227;
    --accent-hover: #ddb82f;
    --accent-glow: rgba(201, 162, 39, 0.3);
    --bg-primary: #0d0f0a;
    --bg-secondary: #131610;
    --bg-tertiary: #1a1e14;
    --bg-card: #10130c;
    --border: #2a3020;
    --border-light: #3a4530;
    --gradient-primary: linear-gradient(135deg, #c9a227 0%, #8b6914 100%);
}

/* Hero Background */
.worldgate-hero {
    position: relative;
    background: #0d0f0a;
}

.worldgate-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/worldgate/background_1.jpg') center/cover no-repeat;
    z-index: 0;
}

.worldgate-hero .hero-overlay {
    background: linear-gradient(to bottom,
        rgba(13, 15, 10, 0.4) 0%,
        rgba(13, 15, 10, 0.85) 100%);
    z-index: 1;
}

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

.worldgate-title-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.worldgate-page .project-hero-title {
    display: none;
}

/* Medieval font for titles */
.worldgate-page .section-title {
    font-family: 'MedievalSharp', cursive;
    letter-spacing: 0.05em;
}

.worldgate-page .section-title::after {
    background: var(--gradient-primary);
}

/* Tech stack tags */
.worldgate-page .project-tech-stack span {
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: #ddb82f;
}

/* Architecture cards */
.worldgate-page .arch-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.worldgate-page .arch-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.15);
}

.worldgate-page .arch-card h3 {
    color: var(--accent-hover);
    font-family: 'MedievalSharp', cursive;
}

/* Code preview */
.worldgate-page .code-preview {
    border: 1px solid var(--border);
    background: var(--bg-card);
}

/* Badges */
.worldgate-page .badge {
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--accent-hover);
}

/* Story stats */
.worldgate-page .story-stat-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gallery placeholders */
.medieval-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%) !important;
    border: 2px solid var(--border) !important;
    position: relative;
}

.medieval-placeholder::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    pointer-events: none;
}

.medieval-placeholder span {
    color: var(--accent) !important;
    font-family: 'MedievalSharp', cursive;
}

/* Alt background with fantasy scene */
.worldgate-page .alt-bg {
    background:
        linear-gradient(to bottom, rgba(13, 15, 10, 0.88) 0%, rgba(19, 22, 16, 0.92) 100%),
        url('../assets/images/worldgate/background_1.jpg') center/cover no-repeat;
}

/* Footer */
.worldgate-page .back-link:hover {
    color: var(--accent-hover);
}

/* Scroll hint */
.worldgate-page .scroll-hint span {
    color: rgba(201, 162, 39, 0.6);
}

.worldgate-page .scroll-arrow {
    border-color: rgba(201, 162, 39, 0.6);
}

/* Pixel art image rendering */
.worldgate-gallery img,
.sprite-showcase img,
.items-showcase img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Gallery Carousel */
.gallery-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 450px;
}

.carousel-slide.active {
    display: flex;
}

.carousel-video {
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.slide-caption {
    font-family: 'MedievalSharp', cursive;
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 16px;
    text-align: center;
}

.carousel-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: var(--accent);
}

/* Sprite showcase */
.sprite-showcase {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.sprite-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sprite-item img {
    width: 360px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.sprite-item:hover img {
    transform: scale(1.2);
}

.sprite-item span {
    font-family: 'MedievalSharp', cursive;
    color: var(--accent);
    font-size: 0.9rem;
}

/* Items showcase */
.items-showcase {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.items-showcase img {
    max-width: 440px;
    max-height: 385px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .worldgate-title-img {
        max-width: 300px;
    }
}
