/* Remove browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: white;
}

/* Header */

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

    padding: 20px 30px;
}

/* Logo */

.logo {
    font-size: 28px;
    font-weight: bold;
    color: black;
    text-decoration: none;
}
/* Burger button */

.menu-button {
    background: none;
    border: none;

    font-size: 32px;

    cursor: pointer;

    padding: 6px 10px;
}

.menu-button:hover {
    opacity: 0.7;
}

/* Main content */

main {
    padding: 40px 30px;
}

/* Home hero */

.hero {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* Profile image */

.hero-image img {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Right side */

.hero-content {
    display: flex;
    flex-direction: column;
}

/* Subtitle */

.hero-content h2 {
    font-size: 32px;
    font-weight: normal;

    margin-bottom: 25px;
}

/* Social icons */

.social-links,
.github-link {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links img,
.github-link img {
    width: 32px;
    height: 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {

    header {
        padding: 20px;
    }

    .logo {
        font-size: 24px;
    }

    .menu-button {
        font-size: 30px;
    }

    main {
        padding: 25px 20px;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-image img {
        width: 220px;
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .social-links,
    .github-link {
        justify-content: center;
        flex-wrap: wrap;
    }

  

}

  /* ===========================
   Side Menu
=========================== */

.side-menu {

    position: fixed;

    top: 0;
    right: -300px;

    width: 300px;
    height: 100vh;

    background: white;

    padding: 30px;

    display: flex;
    flex-direction: column;

    overflow-y: auto;

    transition: right .3s ease;

    box-shadow: -4px 0 15px rgba(0,0,0,.15);

    z-index: 1000;

}

.side-menu.open {

    right: 0;

}

.side-menu a {

    color: black;
    text-decoration: none;

    font-size: 22px;

    margin: 10px 0;

}

.side-menu a:hover {

    color: #e67300;

}

.side-menu a.current {

    color: #1e6fff;

}

.close-button {

    align-self: flex-end;

    background: none;
    border: none;

    font-size: 36px;

    cursor: pointer;

    margin-bottom: 20px;

}
/* Inner page header (with page title) */

.inner-header {
    flex-direction: column;
    align-items: stretch;
}

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

.page-title {
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    margin-top: 10px;
}

/* Game / content list items */

#game-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.item-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 200px;
}

.item-left h2 {
    font-size: 22px;
    font-weight: normal;
}

.item-icon {
    width: 80px;
    height: auto;
    display: block;
}

.item-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.item-buttons img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.item-video {
    flex: 1 1 auto;
    max-width: 480px;
    margin-left: 60px;
}

.video-thumb {
    position: relative;
    width: 100%;
    cursor: pointer;
}

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

.item-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .item {
        flex-direction: column;
    }
    .item-video {
        max-width: 100%;
        margin-left: 0;
    }
}

/* Single-subject pages: bigger content images + crisp review logos */

/* =========================================================
   EXPERIENCE MECCA page (and other single-subject pages)
   Used in: experience-mecca.html + js/experience-mecca.js
   Safe to reuse on future non-list pages with big images.
========================================================= */

/* Makes the left column stretch full width (big images/videos) */
/* Used in: Experience Mecca */
.item-left-wide {
    flex: 1 1 auto;
}

/* Big content image (hero screenshot) */
/* Used in: Experience Mecca */
.item-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

/* Full-width image (closing image at bottom) */
/* Used in: Experience Mecca */
.item-image-large {
    width: 100%;
    height: auto;
    display: block;
}

/* Small review logo (VR Shop, Quartz) - only the image is clickable */
/* Used in: Experience Mecca */
.item-logo {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Shrinks the link to hug the image, so empty space isn't clickable */
/* Used in: Experience Mecca */
.item-left-wide a {
    display: inline-block;
    width: fit-content;
}

/* Section title on its own line (e.g. "Reviews") */
/* Used in: Experience Mecca */
.section-heading {
    font-size: 22px;
    font-weight: bold;
    width: 100%;
}
/* ===== MUSIC PAGE ===== */
/* Append this to the end of css/style.css. Nothing above is changed. */

.music-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.music-item .cover {
    width: 308px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    flex: 0 0 auto;
}

.music-right h2 {
    margin: 0 0 10px 0;
}

.play-button {
    display: inline-block;
    background: #1e6fff;
    color: #fff;
    padding: 8px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 600px) {
    .music-item {
        flex-direction: column;
        align-items: flex-start;
    }
} 
/* =========================================================
   ARABIC STORIES page
   Used in: arabic-stories.html + js/arabic-stories.js
   Self-contained. Does not depend on the music page.
========================================================= */

/* Subtitle centered under the page title (this page only) */
.books-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: normal;
    margin-top: 6px;
}

/* One book row: image on the left, info on the right */
.book-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

/* Book cover - full image, never cropped */
.book-cover {
    width: 308px;
    max-width: 100%;
    height: auto;
    display: block;
    flex: 0 0 auto;
}

/* Right side: title + button or store logos */
.book-info h2 {
    margin: 0 0 10px 0;
}

/* Single blue Buy button */
.book-buy {
    display: inline-block;
    background: #1e6fff;
    color: #fff;
    padding: 8px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* Store logos stacked vertically, under the title */
.store-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-top: 10px;
}

.store-stack .store-logo {
    width: 70px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Stack image and info on small screens */
@media (max-width: 600px) {
    .book-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
 
/* =========================================================
   DANCE page
   Used in: dance.html + js/dance.js
   Close to Experience Mecca; images are centered + capped.
========================================================= */

/* Big centered image (capped width, not edge-to-edge) */
/* Used in: Dance */
.item-image-centered {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Centered video (single-subject pages) */
/* Used in: Dance */
.item-video-centered {
    flex: 1 1 auto;
    max-width: 700px;
    margin: 0 auto;
    margin-left: auto;
}
/* =========================================================
   COMIX page
   Used in: comix.html + js/comix.js
   Image on the left; title + itch logo on the right.
========================================================= */

.comix-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

/* Cover image (left) - full, never cropped */
.comix-cover {
    width: 308px;
    max-width: 100%;
    height: auto;
    display: block;
    flex: 0 0 auto;
}

/* Right side: title on top, logo under it */
.comix-info h2 {
    margin: 0 0 10px 0;
    font-weight: normal;
}

/* Clickable itch logo (only the image is clickable) */
.comix-store {
    display: inline-block;
    width: fit-content;
}

.comix-store img {
    width: 70px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Stack image and info on small screens */
@media (max-width: 600px) {
    .comix-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   AWARDS page
   Used in: awards.html + js/awards.js
   Single-subject page (like Dance). Fully self-contained —
   does NOT reuse Dance or any other page's classes.
   Append this block to the end of css/style.css.
========================================================= */

/* Centered year title on its own line */
.awards-heading {
    text-align: center;
    font-size: 22px;
    font-weight: normal;
    margin: 20px 0 0 0;
}

/* Centered, capped-width image */
.awards-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Centered video block */
.awards-video {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
}

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

.awards-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

/* Play button overlay */
.awards-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Text-only Arabic award item, right-aligned to the page (RTL) */
.awards-note {
    direction: rtl;
    text-align: right;
    width: 100%;
    font-size: 18px;
    line-height: 1.8;
} 


/* =========================================================
   APPS page
   Used in: apps.html + js/apps.js
   Self-contained. Does not reuse any other page's classes.
========================================================= */

.app-item {
    margin-bottom: 30px;
}

.app-item h2 {
    font-size: 22px;
    font-weight: normal;
    margin: 0 0 12px 0;
}

/* Bottom row: app icon + store logo(s) side by side, bottom-aligned */
.app-row {
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

/* Square app launcher icon */
.app-icon {
    width: 80px;
    height: auto;
    display: block;
}

/* Store logos (array-ready for multiple stores) */
.app-stores {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-store-logo {
    height: 30px;
    width: auto;
    max-width: 105px;
    display: block;
}

/* Small screens: keep icon + store side by side, just tighten spacing */
@media (max-width: 600px) {
    .app-row {
        gap: 30px;
    }
}
