/**
 * ph375 Core CSS Styles
 * Website: ph375.click
 * All classes use prefix: g48a-
 * Color palette: #E5E5E5 | #8B0000 | #212F3D | #E9967A
 */

/* CSS Variables */
:root {
    --g48a-bg-dark: #212F3D;
    --g48a-bg-primary: #1a252f;
    --g48a-bg-secondary: #2c3e50;
    --g48a-text-light: #E5E5E5;
    --g48a-text-muted: #a0a0a0;
    --g48a-accent-red: #8B0000;
    --g48a-accent-coral: #E9967A;
    --g48a-accent-gold: #D4AF37;
    --g48a-border-color: #3d566e;
    --g48a-shadow: rgba(0, 0, 0, 0.3);
    --g48a-header-height: 60px;
    --g48a-bottom-nav-height: 60px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g48a-bg-dark);
    color: var(--g48a-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container */
.g48a-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.g48a-wrapper {
    width: 100%;
    padding: 1rem 0;
}

/* Header */
.g48a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--g48a-header-height);
    background: linear-gradient(135deg, var(--g48a-bg-primary), var(--g48a-bg-secondary));
    border-bottom: 2px solid var(--g48a-accent-red);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.g48a-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g48a-logo img {
    width: 32px;
    height: 32px;
}

.g48a-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g48a-accent-coral);
    text-decoration: none;
}

.g48a-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g48a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.g48a-btn-primary {
    background: linear-gradient(135deg, var(--g48a-accent-red), #a00000);
    color: var(--g48a-text-light);
}

.g48a-btn-primary:hover {
    background: linear-gradient(135deg, #a00000, var(--g48a-accent-red));
    transform: translateY(-2px);
}

.g48a-btn-secondary {
    background: transparent;
    border: 1px solid var(--g48a-accent-coral);
    color: var(--g48a-accent-coral);
}

.g48a-btn-secondary:hover {
    background: var(--g48a-accent-coral);
    color: var(--g48a-bg-dark);
}

.g48a-menu-toggle {
    background: transparent;
    border: none;
    color: var(--g48a-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g48a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g48a-bg-primary);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.gameac0f-menu-active {
    right: 0;
}

.g48a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gameac0f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g48a-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g48a-border-color);
}

.g48a-menu-close {
    background: transparent;
    border: none;
    color: var(--g48a-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.g48a-menu-nav {
    list-style: none;
}

.g48a-menu-nav li {
    margin-bottom: 0.8rem;
}

.g48a-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--g48a-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.g48a-menu-nav a:hover {
    background: var(--g48a-bg-secondary);
    color: var(--g48a-accent-coral);
}

/* Main Content */
.g48a-main {
    padding-top: var(--g48a-header-height);
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .g48a-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g48a-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.g48a-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.g48a-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.gameac0f-slide-active {
    opacity: 1;
    position: relative;
}

.g48a-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.g48a-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.g48a-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gameac0f-dot-active {
    background: var(--g48a-accent-coral);
    transform: scale(1.2);
}

/* Sections */
.g48a-section {
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.g48a-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g48a-accent-coral);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--g48a-accent-red);
}

.g48a-section-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--g48a-text-light);
    margin-bottom: 1rem;
}

/* Game Grid */
.g48a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.g48a-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g48a-game-item:hover {
    transform: scale(1.05);
}

.g48a-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--g48a-border-color);
    object-fit: cover;
    transition: border-color 0.3s ease;
}

.g48a-game-item:hover .g48a-game-img {
    border-color: var(--g48a-accent-coral);
}

.g48a-game-name {
    font-size: 1rem;
    color: var(--g48a-text-light);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.g48a-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.g48a-category-icon {
    font-size: 2rem;
    color: var(--g48a-accent-coral);
}

.g48a-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g48a-text-light);
}

/* Cards */
.g48a-card {
    background: var(--g48a-bg-secondary);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--g48a-border-color);
}

.g48a-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g48a-accent-coral);
    margin-bottom: 0.8rem;
}

.g48a-card-text {
    font-size: 1.2rem;
    color: var(--g48a-text-light);
    line-height: 1.6;
}

/* FAQ */
.g48a-faq-item {
    background: var(--g48a-bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.g48a-faq-question {
    padding: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--g48a-accent-coral);
    cursor: pointer;
}

.g48a-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.2rem;
    color: var(--g48a-text-light);
    line-height: 1.6;
}

/* RTP Analysis */
.g48a-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.g48a-rtp-item {
    background: var(--g48a-bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--g48a-border-color);
}

.g48a-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g48a-accent-coral);
}

.g48a-rtp-label {
    font-size: 1.1rem;
    color: var(--g48a-text-muted);
    margin-top: 0.4rem;
}

/* Features List */
.g48a-features-list {
    list-style: none;
}

.g48a-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--g48a-border-color);
}

.g48a-feature-icon {
    font-size: 2rem;
    color: var(--g48a-accent-coral);
    min-width: 30px;
}

.g48a-feature-content h4 {
    font-size: 1.4rem;
    color: var(--g48a-text-light);
    margin-bottom: 0.4rem;
}

.g48a-feature-content p {
    font-size: 1.2rem;
    color: var(--g48a-text-muted);
    line-height: 1.5;
}

/* Promo Link Text */
.g48a-promo-link {
    color: var(--g48a-accent-coral);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.g48a-promo-link:hover {
    color: var(--g48a-accent-gold);
}

/* CTA Button */
.g48a-cta {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--g48a-accent-red), #a00000);
    color: var(--g48a-text-light);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    border: none;
}

.g48a-cta:hover {
    background: linear-gradient(135deg, #a00000, var(--g48a-accent-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--g48a-shadow);
}

/* Footer */
.g48a-footer {
    background: var(--g48a-bg-primary);
    padding: 2rem 1rem 1rem;
    border-top: 2px solid var(--g48a-accent-red);
}

.g48a-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g48a-footer-link {
    color: var(--g48a-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.g48a-footer-link:hover {
    color: var(--g48a-accent-coral);
}

.g48a-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g48a-partner-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g48a-partner-img:hover {
    opacity: 1;
}

.g48a-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--g48a-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--g48a-border-color);
}

/* Bottom Navigation */
.g48a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--g48a-bottom-nav-height);
    background: linear-gradient(135deg, var(--g48a-bg-primary), var(--g48a-bg-secondary));
    border-top: 2px solid var(--g48a-accent-red);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (min-width: 769px) {
    .g48a-bottom-nav {
        display: none;
    }
}

.g48a-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--g48a-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.4rem;
}

.g48a-nav-btn:hover,
.g48a-nav-btn.active {
    color: var(--g48a-accent-coral);
    transform: scale(1.1);
}

.g48a-nav-btn .material-icons,
.g48a-nav-btn ion-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.g48a-nav-btn .fas,
.g48a-nav-btn .far {
    font-size: 22px;
    margin-bottom: 2px;
}

.g48a-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Button Style in Bottom Nav */
.g48a-nav-promo {
    background: linear-gradient(135deg, var(--g48a-accent-red), #a00000);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -20px;
    box-shadow: 0 -4px 10px var(--g48a-shadow);
}

.g48a-nav-promo .fas,
.g48a-nav-promo ion-icon {
    color: var(--g48a-text-light);
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .g48a-header {
        max-width: 100%;
    }

    .g48a-desktop-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .g48a-desktop-nav a {
        color: var(--g48a-text-light);
        text-decoration: none;
        font-size: 1.3rem;
        transition: color 0.3s ease;
    }

    .g48a-desktop-nav a:hover {
        color: var(--g48a-accent-coral);
    }

    .g48a-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .g48a-desktop-nav {
        display: none;
    }
}

/* Utility Classes */
.g48a-text-center {
    text-align: center;
}

.g48a-mt-1 {
    margin-top: 1rem;
}

.g48a-mb-1 {
    margin-bottom: 1rem;
}

.g48a-hidden {
    display: none;
}

/* Achievements */
.g48a-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--g48a-bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--g48a-accent-gold);
}

.g48a-achievement-icon {
    font-size: 2.4rem;
}

.g48a-achievement-text h4 {
    font-size: 1.3rem;
    color: var(--g48a-accent-coral);
}

.g48a-achievement-text p {
    font-size: 1.1rem;
    color: var(--g48a-text-muted);
}

/* Tricks Component */
.g48a-trick {
    background: var(--g48a-bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.g48a-trick-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--g48a-accent-red);
    color: var(--g48a-text-light);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 0.6rem;
}

.g48a-trick-text {
    font-size: 1.2rem;
    color: var(--g48a-text-light);
    line-height: 1.6;
}

/* Security Section */
.g48a-security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.g48a-security-item {
    background: var(--g48a-bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--g48a-border-color);
}

.g48a-security-icon {
    font-size: 2.4rem;
    color: var(--g48a-accent-coral);
    margin-bottom: 0.6rem;
}

.g48a-security-label {
    font-size: 1.1rem;
    color: var(--g48a-text-light);
}
