/* Divefrog Game Page 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.6;
    color: #222;
    background: linear-gradient(180deg, #0a1628 0%, #1a3a5c 100%);
    min-height: 100vh;
}

/* Container for content sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header / Navigation */
header {
    background: rgba(10, 22, 40, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #2d5a3d;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ade80;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #4ade80;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: radial-gradient(ellipse at center top, rgba(74, 222, 128, 0.15) 0%, transparent 60%);
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: #4ade80;
    text-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #4ade80;
    border: 2px solid #4ade80;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(74, 222, 128, 0.1);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Gameplay GIFs Section */
.gameplay-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.gameplay-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gameplay-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.gameplay-item img,
.gameplay-item video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #1a2a3a;
}

.gameplay-item .caption {
    padding: 1rem;
    color: #94a3b8;
    text-align: center;
    font-size: 0.95rem;
}

/* Feature Highlights */
.features-section {
    padding: 4rem 2rem;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(74, 222, 128, 0.15);
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 222, 128, 0.4);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-card h3 {
    color: #4ade80;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Screenshots / Gallery */
.gallery-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    transition: transform 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* About / Description Section */
.about-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-section p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Download Section */
.download-section {
    padding: 4rem 2rem;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
}

.download-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download-section p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-width: 180px;
    text-decoration: none;
    transition: all 0.2s;
}

.download-card:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: #4ade80;
    transform: translateY(-2px);
}

.download-card .platform {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.download-card .size {
    color: #64748b;
    font-size: 0.85rem;
}

/* Footer */
footer {
    background: rgba(10, 22, 40, 0.95);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(74, 222, 128, 0.2);
}

footer p {
    color: #64748b;
    font-size: 0.9rem;
}

footer a {
    color: #4ade80;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gameplay-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin: 0 1rem;
    }
}

/* Screenshots Carousel */
.screenshots-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.screenshots-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.carousel-btn {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: rgba(74, 222, 128, 0.4);
    border-color: #4ade80;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: #4ade80;
}

@media (max-width: 600px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Active Nav Link */
nav a.nav-active {
    color: #4ade80;
}

/* Comics Page Styles */
.comics-hero {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: radial-gradient(ellipse at center top, rgba(74, 222, 128, 0.15) 0%, transparent 60%);
}

.comics-hero h1 {
    font-size: 3rem;
    color: #4ade80;
    text-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
    margin-bottom: 0.75rem;
}

.comics-hero .tagline {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Comics Entry (single comic landing) */
.comics-entry-section {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.comics-entry {
    display: block;
    max-width: 900px;
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(74, 222, 128, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.comics-entry:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.4);
    border-color: #4ade80;
}

.comics-entry img {
    width: 100%;
    height: auto;
    display: block;
    background: #fff;
}

.comics-entry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
}

.comics-count {
    color: #4ade80;
    font-weight: bold;
}

/* Comics Gallery (keeping for potential future use) */
.comics-gallery-section {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    min-height: 60vh;
}

.comics-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.comic-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid rgba(74, 222, 128, 0.2);
    text-decoration: none;
}

.comic-item:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
}

.comic-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.lightbox-counter {
    color: #94a3b8;
    margin-top: 1rem;
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #4ade80;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(74, 222, 128, 0.4);
    border-color: #4ade80;
}

@media (max-width: 600px) {
    .comics-hero h1 {
        font-size: 2rem;
    }

    .comics-hero .tagline {
        font-size: 1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        font-size: 2rem;
    }
}

/* Individual Comic Page */
.comic-page {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.comic-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-comics {
    color: #4ade80;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.back-to-comics:hover {
    color: #22c55e;
    text-decoration: underline;
}

.comic-page-header h1 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
    flex: 1;
    text-align: center;
}

.comic-number {
    color: #94a3b8;
    font-size: 1rem;
}

.comic-display {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(74, 222, 128, 0.3);
    margin-bottom: 1.5rem;
}

.comic-display img {
    width: 100%;
    height: auto;
    display: block;
}

.comic-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.comic-nav-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    transition: all 0.2s;
    font-size: 1rem;
}

.comic-nav-btn:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
}

.comic-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.comic-number-btn {
    cursor: default;
    background: transparent;
    border-color: transparent;
}

.comic-number-btn:hover {
    background: transparent;
    border-color: transparent;
}

.comic-page-embedded {
    padding-top: 0;
}

@media (max-width: 600px) {
    .comic-page-header {
        flex-direction: column;
        text-align: center;
    }

    .comic-page-header h1 {
        font-size: 1.5rem;
        order: -1;
    }

    .back-to-comics {
        order: 1;
    }

    .comic-number {
        order: 0;
    }

    .comic-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
