/**
 * G Perya Layout Styles
 * @version 1.0.0
 * @description Mobile-first responsive styles for g perya gaming platform
 */

/* CSS Variables */
:root {
    --gfcc-primary: #4169E1;
    --gfcc-secondary: #8470FF;
    --gfcc-accent: #9932CC;
    --gfcc-bg-dark: #1a1a2e;
    --gfcc-bg-darker: #16213e;
    --gfcc-bg-card: #0f3460;
    --gfcc-text-light: #F0F8FF;
    --gfcc-text-muted: #E5E5E5;
    --gfcc-text-dark: #2D2D2D;
    --gfcc-border: #2a4a7f;
    --gfcc-gradient-1: linear-gradient(135deg, #4169E1 0%, #8470FF 50%, #9932CC 100%);
    --gfcc-gradient-2: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    --gfcc-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    --gfcc-radius: 12px;
    --gfcc-radius-sm: 8px;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--gfcc-text-light);
    background: var(--gfcc-bg-dark);
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: var(--gfcc-text-muted);
}

a {
    color: var(--gfcc-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gfcc-secondary);
}

/* Container */
.gfcc-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gfcc-wrapper {
    padding: 1rem;
}

/* Header */
.gfcc-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--gfcc-bg-darker);
    border-bottom: 1px solid var(--gfcc-border);
    z-index: 1000;
    padding: 0.8rem 1rem;
}

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

.gfcc-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gfcc-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.gfcc-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gfcc-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gfcc-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gfcc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--gfcc-radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gfcc-btn-primary {
    background: var(--gfcc-gradient-1);
    color: var(--gfcc-text-light);
}

.gfcc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--gfcc-shadow);
}

.gfcc-btn-outline {
    background: transparent;
    color: var(--gfcc-primary);
    border: 2px solid var(--gfcc-primary);
}

.gfcc-btn-outline:hover {
    background: var(--gfcc-primary);
    color: var(--gfcc-text-light);
}

.gfcc-btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
}

/* Hamburger Menu */
.gfcc-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.gfcc-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gfcc-text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.gfcc-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.gfcc-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.gfcc-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.gfcc-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--gfcc-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.gfcc-menu-open {
    right: 0;
}

.gfcc-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gfcc-overlay-active {
    opacity: 1;
    visibility: visible;
}

.gfcc-nav-list {
    list-style: none;
}

.gfcc-nav-item {
    border-bottom: 1px solid var(--gfcc-border);
}

.gfcc-nav-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--gfcc-text-light);
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gfcc-nav-link:hover {
    color: var(--gfcc-primary);
    padding-left: 1rem;
}

/* Slider/Carousel */
.gfcc-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 56px;
}

.gfcc-slides-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.gfcc-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.gfcc-slide-active {
    opacity: 1;
}

.gfcc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gfcc-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.gfcc-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gfcc-dot-active {
    background: var(--gfcc-primary);
    width: 20px;
    border-radius: 4px;
}

/* Main Content */
main {
    padding-top: 56px;
    padding-bottom: 80px;
}

.gfcc-section {
    padding: 2rem 0;
}

.gfcc-section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.gfcc-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gfcc-gradient-1);
    border-radius: 2px;
}

/* Game Grid */
.gfcc-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.gfcc-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gfcc-game-item:hover {
    transform: scale(1.05);
}

.gfcc-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--gfcc-radius-sm);
    overflow: hidden;
    margin-bottom: 0.3rem;
    border: 2px solid var(--gfcc-border);
    transition: border-color 0.3s ease;
}

.gfcc-game-item:hover .gfcc-game-icon {
    border-color: var(--gfcc-primary);
}

.gfcc-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gfcc-game-name {
    font-size: 1rem;
    color: var(--gfcc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.gfcc-category-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gfcc-text-light);
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius-sm);
    margin-bottom: 1rem;
    border-left: 3px solid var(--gfcc-primary);
}

/* Cards */
.gfcc-card {
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gfcc-border);
}

.gfcc-card-title {
    color: var(--gfcc-text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gfcc-card-title i {
    color: var(--gfcc-primary);
}

/* Promo Link Button */
.gfcc-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gfcc-gradient-1);
    color: var(--gfcc-text-light);
    border-radius: var(--gfcc-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gfcc-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--gfcc-shadow);
    color: var(--gfcc-text-light);
}

.gfcc-promo-btn i {
    font-size: 1.6rem;
}

/* Text Link */
.gfcc-text-link {
    color: var(--gfcc-primary);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.gfcc-text-link:hover {
    color: var(--gfcc-secondary);
}

/* Features List */
.gfcc-features {
    display: grid;
    gap: 1rem;
}

.gfcc-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius-sm);
    border-left: 3px solid var(--gfcc-primary);
}

.gfcc-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gfcc-gradient-1);
    border-radius: 50%;
    flex-shrink: 0;
}

.gfcc-feature-icon i {
    font-size: 1.8rem;
    color: var(--gfcc-text-light);
}

.gfcc-feature-content h4 {
    color: var(--gfcc-text-light);
    margin-bottom: 0.3rem;
}

.gfcc-feature-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Footer */
.gfcc-footer {
    background: var(--gfcc-bg-darker);
    padding: 2rem 1rem;
    border-top: 1px solid var(--gfcc-border);
}

.gfcc-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gfcc-footer-brand p {
    font-size: 1.2rem;
    color: var(--gfcc-text-muted);
    margin-bottom: 0.5rem;
}

.gfcc-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.gfcc-footer-link {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    color: var(--gfcc-text-muted);
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius-sm);
    transition: all 0.3s ease;
}

.gfcc-footer-link:hover {
    color: var(--gfcc-text-light);
    background: var(--gfcc-primary);
}

.gfcc-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gfcc-border);
}

.gfcc-footer-nav a {
    color: var(--gfcc-text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.gfcc-footer-nav a:hover {
    color: var(--gfcc-primary);
}

.gfcc-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gfcc-text-muted);
}

/* Bottom Navigation */
.gfcc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: var(--gfcc-bg-darker);
    border-top: 1px solid var(--gfcc-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.gfcc-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gfcc-text-muted);
}

.gfcc-nav-btn:hover,
.gfcc-nav-btn.gfcc-active {
    color: var(--gfcc-primary);
}

.gfcc-nav-btn i {
    font-size: 22px;
    margin-bottom: 2px;
}

.gfcc-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

.gfcc-nav-btn.gfcc-active {
    background: linear-gradient(180deg, rgba(65, 105, 225, 0.1) 0%, transparent 100%);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .gfcc-bottom-nav {
        display: none;
    }
}

/* Mobile padding for content */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Promo Section */
.gfcc-promo-section {
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid var(--gfcc-border);
}

.gfcc-promo-section h3 {
    color: var(--gfcc-text-light);
    margin-bottom: 1rem;
}

/* Testimonials */
.gfcc-testimonial {
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--gfcc-accent);
}

.gfcc-testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.gfcc-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gfcc-gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gfcc-text-light);
}

.gfcc-testimonial-name {
    font-weight: 600;
    color: var(--gfcc-text-light);
}

.gfcc-testimonial-stars {
    color: #FFD700;
}

/* RTP Table */
.gfcc-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.gfcc-rtp-table th,
.gfcc-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--gfcc-border);
}

.gfcc-rtp-table th {
    background: var(--gfcc-bg-card);
    color: var(--gfcc-text-light);
    font-weight: 600;
}

.gfcc-rtp-table td {
    color: var(--gfcc-text-muted);
}

.gfcc-rtp-high {
    color: #4CAF50;
    font-weight: 600;
}

/* FAQ Accordion */
.gfcc-faq-item {
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius-sm);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.gfcc-faq-question {
    padding: 1rem;
    font-weight: 600;
    color: var(--gfcc-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gfcc-faq-answer {
    padding: 0 1rem 1rem;
    color: var(--gfcc-text-muted);
    font-size: 1.3rem;
}

/* Payment Methods */
.gfcc-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gfcc-payment-item {
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius-sm);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--gfcc-border);
}

.gfcc-payment-item i {
    font-size: 2.4rem;
    color: var(--gfcc-primary);
    margin-bottom: 0.5rem;
}

.gfcc-payment-item span {
    display: block;
    font-size: 1.1rem;
    color: var(--gfcc-text-muted);
}

/* Winner Showcase */
.gfcc-winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius-sm);
    margin-bottom: 0.8rem;
}

.gfcc-winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gfcc-gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.gfcc-winner-info {
    flex: 1;
}

.gfcc-winner-name {
    font-weight: 600;
    color: var(--gfcc-text-light);
    font-size: 1.3rem;
}

.gfcc-winner-game {
    font-size: 1.1rem;
    color: var(--gfcc-text-muted);
}

.gfcc-winner-amount {
    font-weight: 700;
    color: #4CAF50;
    font-size: 1.4rem;
}

/* App Download Section */
.gfcc-app-section {
    background: var(--gfcc-bg-card);
    border-radius: var(--gfcc-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gfcc-border);
}

.gfcc-app-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* Utility Classes */
.gfcc-text-center { text-align: center; }
.gfcc-mb-1 { margin-bottom: 1rem; }
.gfcc-mb-2 { margin-bottom: 2rem; }
.gfcc-mt-1 { margin-top: 1rem; }
.gfcc-mt-2 { margin-top: 2rem; }
.gfcc-hidden { display: none; }

/* Desktop Adjustments */
@media (min-width: 769px) {
    body {
        max-width: 100%;
    }

    .gfcc-container {
        max-width: 1200px;
    }

    .gfcc-header {
        max-width: 100%;
    }

    .gfcc-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }
}
