/* ============================================================
   Pokemon: The New Generation - Custom Theme
   Red & White colour scheme
   ============================================================ */

:root {
    --poke-red:        #cc0000;
    --poke-red-dark:   #990000;
    --poke-red-light:  #e63939;
    --poke-white:      #f5f5f5;
    --poke-offwhite:   #f0f0f0;
    --poke-light-grey: #f0f0f0;
    --poke-mid-grey:   #dddddd;
    --poke-dark:       #1a1a1a;
    --poke-text:       #222222;
}

/* ---- Global ---- */
body {
    background-color: var(--poke-offwhite);
    color: var(--poke-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: var(--poke-red);
}
a:hover {
    color: var(--poke-red-dark);
    text-decoration: underline;
}

/* ---- Navbar ---- */
.navbar {
    background-color: var(--poke-red) !important;
    border-bottom: 3px solid var(--poke-red-dark);
    padding: 0.6rem 1rem;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .btn-link {
    color: var(--poke-white) !important;
}

.navbar .nav-link:hover,
.navbar .btn-link:hover {
    color: var(--poke-mid-grey) !important;
    text-decoration: none;
}

.navbar-logo {
    height: 3.2rem;
    width: auto;
}

.navbar-brand .media-body {
    line-height: 1.2;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.navbar-brand .media-body small {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.88;
    letter-spacing: 0.04em;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar .dropdown-menu {
    background-color: var(--poke-red-dark);
    border: 1px solid var(--poke-red);
}

.navbar .dropdown-item {
    color: var(--poke-white);
}

.navbar .dropdown-item:hover {
    background-color: var(--poke-red);
    color: var(--poke-white);
}

.navbar .dropdown-divider {
    border-top-color: rgba(255,255,255,0.2);
}

/* ---- Hero Banner ---- */
.hero-banner {
    background: linear-gradient(135deg, var(--poke-red-dark) 0%, var(--poke-red) 60%, #e63939 100%);
    color: var(--poke-white);
    padding: 4rem 2rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.hero-banner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-banner .hero-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-banner .hero-description {
    font-size: 1rem;
    max-width: 680px;
    margin: 0 auto 2.2rem;
    opacity: 0.92;
    line-height: 1.7;
}

/* Play button */
.playbutton,
a.playbutton {
    display: inline-block;
    background-color: #0d3a6e !important;
    background-image: none !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    border: 2px solid #ffffff !important;
    text-decoration: none !important;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    letter-spacing: 0.03em;
}

.playbutton:hover,
a.playbutton:hover {
    background-color: #092a52 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

/* Connection info strip below hero */
.connection-strip {
    background-color: var(--poke-red-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    padding: 0.5rem 1.5rem;
    text-align: center;
}

.connection-strip strong {
    color: var(--poke-white);
}

/* ---- Section headings ---- */
.section-heading {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--poke-red);
    border-left: 5px solid var(--poke-red);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ---- Feature cards ---- */
.feature-card {
    background: var(--poke-white);
    border: 1px solid var(--poke-mid-grey);
    border-radius: 8px;
    padding: 1.6rem 1.4rem;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 20px rgba(204,0,0,0.15);
    transform: translateY(-3px);
}

.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h5 {
    font-weight: 700;
    color: var(--poke-red);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.93rem;
    color: #555;
    margin-bottom: 0;
}

/* ---- Screenshots ---- */
.screenshots-section {
    background: var(--poke-light-grey);
    border-top: 2px solid var(--poke-mid-grey);
    border-bottom: 2px solid var(--poke-mid-grey);
    padding: 3rem 0;
}

.screenshot-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.screenshot-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    transform: translateY(-4px);
}

.screenshot-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top left;
    display: block;
    opacity: 0.92;
    transition: opacity 0.2s;
}

.screenshot-card:hover img {
    opacity: 1;
}

.screenshot-caption {
    background: #111;
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
    font-style: italic;
}

/* Lightbox overlay */
#screenshot-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#screenshot-lightbox.active {
    display: flex;
}

#screenshot-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    cursor: default;
}

/* ---- Stat / info widgets ---- */
.info-card {
    background: var(--poke-white);
    border: 1px solid var(--poke-mid-grey);
    border-radius: 8px;
    overflow: hidden;
}

.info-card .info-card-header {
    background: var(--poke-red);
    color: var(--poke-white);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.info-card .info-card-body {
    padding: 1rem;
    font-size: 0.9rem;
}

.info-card table {
    width: 100%;
    margin: 0;
}

.info-card table td {
    padding: 0.25rem 0.4rem;
}

.info-card table tr:nth-child(even) td {
    background-color: var(--poke-light-grey);
}

/* ---- Footer ---- */
.footer {
    background-color: var(--poke-red-dark);
    color: rgba(255,255,255,0.75);
    padding: 1.4rem 0;
    margin-top: 3rem;
    font-size: 0.88rem;
    text-align: center;
}

.footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.footer a:hover {
    color: var(--poke-white);
}

/* ---- Misc ---- */
.main-content {
    max-width: 1140px;
}

/* Cards inherit the new style */
.card {
    border-color: var(--poke-mid-grey);
}

.card-header {
    background-color: var(--poke-red);
    color: var(--poke-white);
    font-weight: 700;
    border-bottom-color: var(--poke-red-dark);
}

hr.red-divider {
    border-top: 2px solid var(--poke-red);
    opacity: 0.35;
}
