/**
 * Legend Link App - Core Stylesheet
 * @version 1.0.0
 * Mobile-first responsive design for Legend Link online casino
 */

/* ===== CSS Variables ===== */
:root {
    --pgaf-color-primary: #880E4F;
    --pgaf-color-secondary: #FF8A80;
    --pgaf-color-accent: #FFC0CB;
    --pgaf-color-dark: #34495E;
    --pgaf-color-darker: #2c3e50;
    --pgaf-color-light: #f8f9fa;
    --pgaf-color-white: #ffffff;
    --pgaf-color-text: #333333;
    --pgaf-color-text-light: #666666;
    --pgaf-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --pgaf-shadow-md: 0 4px 6px rgba(0,0,0,0.12);
    --pgaf-shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --pgaf-border-radius: 8px;
    --pgaf-border-radius-sm: 4px;
    --pgaf-border-radius-lg: 12px;
    --pgaf-transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--pgaf-color-text);
    background-color: var(--pgaf-color-light);
    overflow-x: hidden;
}

/* ===== Header Styles ===== */
.pgaf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pgaf-color-primary) 0%, var(--pgaf-color-darker) 100%);
    box-shadow: var(--pgaf-shadow-md);
    z-index: 1000;
    padding: 12px 16px;
}

.pgaf-header-container {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pgaf-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--pgaf-color-white);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pgaf-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--pgaf-border-radius);
    background: var(--pgaf-color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pgaf-header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pgaf-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--pgaf-border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pgaf-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pgaf-btn-register {
    background: var(--pgaf-color-secondary);
    color: var(--pgaf-color-white);
}

.pgaf-btn-register:hover {
    background: var(--pgaf-color-accent);
    transform: translateY(-2px);
    box-shadow: var(--pgaf-shadow-md);
}

.pgaf-btn-login {
    background: transparent;
    color: var(--pgaf-color-white);
    border: 2px solid var(--pgaf-color-white);
}

.pgaf-btn-login:hover {
    background: var(--pgaf-color-white);
    color: var(--pgaf-color-primary);
}

.pgaf-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--pgaf-color-white);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--pgaf-border-radius);
    transition: var(--pgaf-transition);
}

.pgaf-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== Mobile Menu ===== */
.pgaf-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--pgaf-color-white);
    box-shadow: var(--pgaf-shadow-lg);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.pgaf-menu-active.pgaf-mobile-menu {
    left: 0;
}

.pgaf-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--pgaf-transition);
}

.pgaf-menu-active ~ .pgaf-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.pgaf-menu-header {
    padding: 0 20px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pgaf-menu-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--pgaf-color-text);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pgaf-border-radius);
}

.pgaf-menu-close:hover {
    background: var(--pgaf-color-light);
}

.pgaf-menu-nav {
    padding: 16px 0;
}

.pgaf-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--pgaf-color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--pgaf-transition);
}

.pgaf-menu-link:hover {
    background: var(--pgaf-color-light);
    color: var(--pgaf-color-primary);
}

.pgaf-menu-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    color: var(--pgaf-color-secondary);
}

/* ===== Main Content ===== */
.pgaf-main {
    margin-top: 70px;
    padding: 20px 16px 100px;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Carousel ===== */
.pgaf-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--pgaf-border-radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--pgaf-shadow-md);
}

.pgaf-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pgaf-slide-active.pgaf-carousel-slide {
    opacity: 1;
}

.pgaf-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Section Styles ===== */
.pgaf-section {
    margin-bottom: 32px;
}

.pgaf-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pgaf-color-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pgaf-section-title i {
    color: var(--pgaf-color-secondary);
}

/* ===== Game Grid ===== */
.pgaf-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pgaf-game-card {
    background: var(--pgaf-color-white);
    border-radius: var(--pgaf-border-radius);
    overflow: hidden;
    box-shadow: var(--pgaf-shadow-sm);
    transition: var(--pgaf-transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.pgaf-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pgaf-shadow-md);
}

.pgaf-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--pgaf-color-light);
}

.pgaf-game-name {
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--pgaf-color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Module Cards ===== */
.pgaf-module-card {
    background: var(--pgaf-color-white);
    border-radius: var(--pgaf-border-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--pgaf-shadow-sm);
}

.pgaf-module-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pgaf-color-primary);
    margin-bottom: 12px;
}

.pgaf-module-content {
    font-size: 0.95rem;
    color: var(--pgaf-color-text-light);
    line-height: 1.7;
}

.pgaf-module-content p {
    margin-bottom: 12px;
}

.pgaf-module-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.pgaf-module-content li {
    margin-bottom: 8px;
}

/* ===== CTA Buttons ===== */
.pgaf-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--pgaf-color-primary) 0%, var(--pgaf-color-darker) 100%);
    color: var(--pgaf-color-white);
    border: none;
    border-radius: var(--pgaf-border-radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--pgaf-transition);
    text-decoration: none;
    margin-top: 16px;
    box-shadow: var(--pgaf-shadow-md);
}

.pgaf-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--pgaf-shadow-lg);
}

/* ===== Footer ===== */
.pgaf-footer {
    background: var(--pgaf-color-dark);
    color: var(--pgaf-color-white);
    padding: 32px 16px 80px;
    margin-top: 40px;
}

.pgaf-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.pgaf-footer-intro {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.pgaf-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.pgaf-footer-link {
    color: var(--pgaf-color-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--pgaf-transition);
}

.pgaf-footer-link:hover {
    color: var(--pgaf-color-accent);
}

.pgaf-partners {
    margin-bottom: 24px;
}

.pgaf-partners-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.8;
}

.pgaf-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.pgaf-partner-logo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--pgaf-color-white);
    border-radius: var(--pgaf-border-radius-sm);
    padding: 4px;
}

.pgaf-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.pgaf-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== Mobile Bottom Navigation ===== */
.pgaf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--pgaf-color-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}

.pgaf-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--pgaf-color-text-light);
    transition: var(--pgaf-transition);
    cursor: pointer;
    border-radius: var(--pgaf-border-radius);
    padding: 8px;
}

.pgaf-nav-item:hover {
    background: var(--pgaf-color-light);
    color: var(--pgaf-color-primary);
}

.pgaf-nav-item.pgaf-nav-active {
    color: var(--pgaf-color-primary);
}

.pgaf-nav-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgaf-nav-text {
    font-size: 11px;
    font-weight: 600;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pgaf-bottom-nav {
        display: none;
    }

    .pgaf-main {
        padding-bottom: 40px;
    }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .pgaf-main {
        padding-bottom: 100px;
    }
}

/* ===== Utility Classes ===== */
.pgaf-text-center {
    text-align: center;
}

.pgaf-mb-1 {
    margin-bottom: 8px;
}

.pgaf-mb-2 {
    margin-bottom: 16px;
}

.pgaf-mb-3 {
    margin-bottom: 24px;
}

.pgaf-mt-1 {
    margin-top: 8px;
}

.pgaf-mt-2 {
    margin-top: 16px;
}

.pgaf-mt-3 {
    margin-top: 24px;
}
