/* File: assets/css/style.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #101018;
    color: #f5f5f5;
    line-height: 1.6;
}

a {
    color: #8fd3ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header and nav */

.site-header {
    background-color: #07070d;
    border-bottom: 2px solid #29293b;
    padding: 10px 0;
}

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

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 60px;
    margin-right: 10px;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.08em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links a {
    padding: 6px 10px;
    border-radius: 3px;
}

.nav-links a:hover {
    background-color: #202033;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-steam {
    background-color: #171a21;
    color: #f5f5f5;
    border: 1px solid #5b708b;
}

.btn-steam:hover {
    background-color: #2b3240;
    text-decoration: none;
}

/* Buy button */

.btn-buy {
    background-color: #2ecc71;
    border: 1px solid #27ae60;
    color: #07130b;
    padding: 10px 18px;
    font-size: 1rem;
}

.btn-buy:hover {
    background-color: #27ae60;
    color: #effff5;
    text-decoration: none;
}

.site-main {
    padding: 30px 0 50px;
	flex: 1 0 auto;
}

/* Home banner */

.home-banner {
    margin-bottom: 30px;
}

.home-banner img {
    width: 100%;
    display: block;
    border-radius: 4px;
    border: 1px solid #26263a;
    max-height: 380px;
    object-fit: cover;
}

/* Hero section for home */

.hero {
    padding: 20px 0 40px;
    text-align: center;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #d0d0e0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

/* Featured project */

.featured-project {
    margin-top: 10px;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.featured-header h2 {
    font-size: 1.4rem;
}

.featured-header a {
    font-size: 0.85rem;
}

.featured-card {
    background-color: #151521;
    border-radius: 6px;
    border: 1px solid #26263a;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.featured-image {
    flex: 2 1 260px;
    max-height: 260px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-body {
    flex: 1 1 240px;
    padding: 14px 16px;
}

.featured-body h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.featured-body .project-subtitle {
    margin-bottom: 8px;
}

.featured-badges {
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #f1c40f;
}

/* Featured project */

.featured-project {
    margin-top: 10px;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

/* NEW: grid for multiple featured cards */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.featured-header h2 {
    font-size: 1.4rem;
}

.featured-header a {
    font-size: 0.85rem;
}


/* Section titles */

.section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.section-intro {
    margin-bottom: 25px;
    color: #d0d0e0;
}

/* Project grid - listing page */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: #151521;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #26263a;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.project-card-featured {
    border-color: #ffdd57;
    box-shadow: 0 0 18px rgba(255, 221, 87, 0.25);
}

/* >>> NEW: Sale border style <<< */
.project-card-sale {
    border-color: #c9ff7a; /* green-yellow */
    box-shadow: 0 0 18px rgba(181, 255, 120, 0.45);
}

.project-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.project-card-image {
    position: relative;
    overflow: hidden;
    max-height: 200px;
}

.project-card-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.project-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-color: rgba(0, 0, 0, 0.7);
}

.project-badge-upcoming {
    background-color: #c0392b;
}

.project-badge-featured {
    right: 8px;
    left: auto;
    background-color: #f1c40f;
    color: #101018;
}

/* >>> NEW: Sale badge style <<< */
.project-badge-sale {
    background-color: #2ecc71;
    color: #041107;
}

.project-card-body {
    padding: 12px 14px 16px;
}

.project-card-body h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.project-subtitle {
    font-size: 0.85rem;
    color: #b0b0c8;
    margin-bottom: 8px;
}

.project-short {
    font-size: 0.9rem;
}

/* NEW: sale tint for featured cards (same vibe as project-card-sale) */
.featured-card-sale {
    border-color: #c9ff7a;
    box-shadow: 0 0 18px rgba(181, 255, 120, 0.45);
}


/* Breadcrumb */

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #aaaaff;
}

/* Project detail page */

.project-detail-header,
.project-main-image,
.project-long-description,
.project-gallery {
    max-width: 960px;
    margin: 0 auto 20px;
}

.project-detail-header {
    margin-top: 10px;
}

/* Layout for header + buy button */
.project-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.project-header-main {
    flex: 1 1 auto;
}

.project-header-cta {
    flex: 0 0 auto;
}

.project-detail-title {
    font-size: 1.9rem;
    margin-bottom: 6px;
}

.project-detail-subtitle {
    font-size: 1rem;
    color: #d0d0e0;
    margin-bottom: 8px;
}

.project-meta {
    font-size: 0.85rem;
    color: #b0b0c8;
    margin-bottom: 14px;
}

/* >>> NEW: Sale text on detail page (optional) <<< */
.project-meta-sale {
    color: #2ecc71;
    font-weight: 600;
}

.project-main-image img {
    width: 100%;
    display: block;
    border-radius: 4px;
    border: 1px solid #26263a;
    max-height: 420px;
    object-fit: cover;
    cursor: zoom-in;
}

.project-long-description {
    margin-bottom: 25px;
    font-size: 0.98rem;
}

/* Gallery */

.project-gallery-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.project-gallery-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
    border: 1px solid #26263a;
    cursor: zoom-in;
}

/* Footer */

.site-footer {
    border-top: 2px solid #29293b;
    background-color: #07070d;
    padding: 15px 0;
	margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

.social-link img {
    height: 24px;
    width: 24px;
    display: block;
}

/* Lightbox */

.ei-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.ei-lightbox.is-visible {
    display: flex;
}

.ei-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    border: 1px solid #555;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

.ei-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}

/* Responsive tweaks */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-nav {
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        gap: 10px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-image {
        max-height: none;
    }

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

    .project-header-cta {
        margin-top: 10px;
    }
}
