/**
 * ph25 - Main Stylesheet
 * All classes use gde2- prefix for namespace isolation
 * Mobile-first responsive design with color palette: #2E4057, #CD853F, #DEE2E6, #5F9EA0, #A0522D
 */

/* ===== CSS Variables ===== */
:root {
    --gde2-primary: #CD853F;
    --gde2-secondary: #5F9EA0;
    --gde2-accent: #A0522D;
    --gde2-dark: #2E4057;
    --gde2-light: #DEE2E6;
    --gde2-bg: #2E4057;
    --gde2-text: #DEE2E6;
    --gde2-text-muted: #B0B8C1;
    --gde2-border: #5F9EA0;
    --gde2-success: #28a745;
    --gde2-danger: #dc3545;
    --gde2-warning: #ffc107;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--gde2-text);
    background-color: var(--gde2-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Container ===== */
.gde2-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gde2-wrapper {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* ===== Header ===== */
.gde2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--gde2-dark);
    border-bottom: 2px solid var(--gde2-primary);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gde2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.gde2-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--gde2-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.gde2-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.gde2-header-buttons {
    display: flex;
    gap: 1rem;
}

.gde2-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gde2-btn-primary {
    background: linear-gradient(135deg, var(--gde2-primary), var(--gde2-accent));
    color: white;
}

.gde2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.4);
}

.gde2-btn-secondary {
    background: transparent;
    color: var(--gde2-primary);
    border: 2px solid var(--gde2-primary);
}

.gde2-btn-secondary:hover {
    background: var(--gde2-primary);
    color: white;
}

.gde2-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gde2-primary);
    font-size: 2rem;
}

/* ===== Mobile Menu ===== */
.gde2-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--gde2-dark);
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.gde2-menu-open {
    left: 0;
}

.gde2-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 2px solid var(--gde2-primary);
}

.gde2-menu-close {
    background: transparent;
    border: none;
    color: var(--gde2-primary);
    font-size: 2.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gde2-menu-nav {
    padding: 1rem 0;
}

.gde2-menu-nav a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--gde2-text);
    text-decoration: none;
    font-size: 1.6rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.gde2-menu-nav a:hover {
    background-color: rgba(95, 158, 160, 0.1);
    border-left-color: var(--gde2-primary);
    color: var(--gde2-primary);
}

.gde2-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.gde2-menu-open + .gde2-menu-overlay {
    display: block;
}

/* ===== Carousel ===== */
.gde2-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.gde2-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gde2-carousel-slide {
    min-width: 100%;
    position: relative;
}

.gde2-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gde2-carousel-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;
}

.gde2-carousel-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.gde2-carousel-text {
    font-size: 1.4rem;
    color: var(--gde2-light);
}

/* ===== Section Styles ===== */
.gde2-section {
    margin-bottom: 3rem;
}

.gde2-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gde2-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gde2-border);
}

/* ===== Game Grid ===== */
.gde2-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gde2-game-item {
    position: relative;
    background-color: rgba(95, 158, 160, 0.1);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gde2-game-item:hover {
    transform: scale(1.05);
    border-color: var(--gde2-primary);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.3);
}

.gde2-game-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.gde2-game-name {
    padding: 0.8rem 0.5rem;
    font-size: 1.2rem;
    text-align: center;
    color: var(--gde2-text);
    background-color: var(--gde2-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Content Cards ===== */
.gde2-card {
    background-color: rgba(46, 64, 87, 0.6);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gde2-border);
}

.gde2-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gde2-primary);
    margin-bottom: 1rem;
}

.gde2-card-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--gde2-text);
    margin-bottom: 1rem;
}

.gde2-card-text a {
    color: var(--gde2-primary);
    text-decoration: none;
    font-weight: 600;
}

.gde2-card-text a:hover {
    text-decoration: underline;
}

/* ===== List Styles ===== */
.gde2-list {
    list-style: none;
    padding-left: 0;
}

.gde2-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gde2-border);
    font-size: 1.5rem;
    color: var(--gde2-text);
}

.gde2-list li:last-child {
    border-bottom: none;
}

.gde2-list li:before {
    content: "▸";
    color: var(--gde2-primary);
    margin-right: 0.8rem;
    font-size: 1.8rem;
}

/* ===== Promotional Links ===== */
.gde2-promo-link {
    color: var(--gde2-primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gde2-promo-link:hover {
    color: var(--gde2-accent);
    text-decoration: underline;
}

/* ===== Footer ===== */
.gde2-footer {
    background-color: var(--gde2-dark);
    border-top: 2px solid var(--gde2-primary);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.gde2-footer-content {
    margin-bottom: 2rem;
}

.gde2-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gde2-footer-links a {
    color: var(--gde2-primary);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gde2-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.gde2-footer-links a:hover {
    background-color: var(--gde2-primary);
    color: white;
}

.gde2-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.gde2-partners img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.gde2-partners img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.gde2-copyright {
    text-align: center;
    font-size: 1.3rem;
    color: var(--gde2-text-muted);
    padding-top: 2rem;
    border-top: 1px solid var(--gde2-border);
}

/* ===== Mobile Bottom Navigation ===== */
.gde2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--gde2-dark), #1a2a3d);
    border-top: 2px solid var(--gde2-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.gde2-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--gde2-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gde2-bottom-nav-item:hover,
.gde2-bottom-nav-item.gde2-active {
    color: var(--gde2-primary);
    transform: scale(1.1);
}

.gde2-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.gde2-bottom-nav-text {
    font-size: 10px;
    font-weight: 600;
}

/* ===== Responsive Design ===== */
@media (min-width: 769px) {
    .gde2-bottom-nav {
        display: none;
    }

    .gde2-menu-toggle {
        display: none;
    }

    .gde2-wrapper {
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .gde2-wrapper {
        padding-bottom: 80px;
    }

    .gde2-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
}

/* ===== Touch Feedback ===== */
.gde2-touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* ===== Utility Classes ===== */
.gde2-text-center {
    text-align: center;
}

.gde2-mb-1 {
    margin-bottom: 1rem;
}

.gde2-mb-2 {
    margin-bottom: 2rem;
}

.gde2-mb-3 {
    margin-bottom: 3rem;
}

.gde2-mt-1 {
    margin-top: 1rem;
}

.gde2-mt-2 {
    margin-top: 2rem;
}

.gde2-highlight {
    color: var(--gde2-primary);
    font-weight: 700;
}
