/**
 * Happy Bunny - Main Stylesheet
 * Mobile-first responsive design
 * Prefix: hpb-
 */

/* CSS Variables */
:root {
    --hpb-primary: #9b59b6;
    --hpb-primary-light: #f8b4d6;
    --hpb-primary-dark: #8e44ad;
    --hpb-secondary: #e74c3c;
    --hpb-bg: #1a1a2e;
    --hpb-bg-light: #16213e;
    --hpb-bg-card: #0f3460;
    --hpb-text: #ffffff;
    --hpb-text-muted: #b0b0b0;
    --hpb-border: #2c3e50;
    --hpb-gradient: linear-gradient(135deg, #9b59b6 0%, #f8b4d6 100%);
    --hpb-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--hpb-bg);
    color: var(--hpb-text);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

.hpb-wrapper {
    padding: 2rem 0;
}

/* header */
.hpb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hpb-border);
    transition: all 0.3s ease;
}

.hpb-header-scrolled {
    background: rgba(26, 26, 46, 0.99);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hpb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.hpb-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.hpb-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.hpb-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--hpb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hpb-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.hpb-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hpb-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--hpb-text);
    transition: all 0.3s ease;
}

/* buttons */
.hpb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}
.hpb-btn-primary {
    background: var(--hpb-gradient);
    color: var(--hpb-text);
    box-shadow: var(--hpb-shadow);
}
.hpb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}
.hpb-btn-secondary {
    background: transparent;
    color: var(--hpb-text);
    border: 2px solid var(--hpb-primary);
}
.hpb-btn-secondary:hover {
    background: var(--hpb-primary);
}
.hpb-btn-small {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
}
/* mobile menu */
.hpb-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--hpb-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}
.hpb-menu-active {
    right: 0;
}
.hpb-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;
}
.hpb-overlay-active {
    opacity: 1;
    visibility: visible;
}
.hpb-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hpb-border);
}
.hpb-menu-close {
    background: none;
    border: none;
    color: var(--hpb-text);
    font-size: 2.4rem;
    cursor: pointer;
}
.hpb-menu-nav {
    list-style: none;
}
.hpb-menu-nav li {
    margin-bottom: 1rem;
}
.hpb-menu-nav a {
    display: block;
    padding: 1rem;
    font-size: 1.4rem;
    color: var(--hpb-text);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.hpb-menu-nav a:hover {
    background: var(--hpb-primary);
    padding-left: 1.5rem;
}
/* slider */
.hpb-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.hpb-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.hpb-slide:first-child {
    display: block;
}
.hpb-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.hpb-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.hpb-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.hpb-dot-active {
    background: var(--hpb-primary-light);
    transform: scale(1.2);
}
/* section headers */
.hpb-section {
    padding: 2rem 0;
}
.hpb-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--hpb-text);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hpb-section-title i {
    color: var(--hpb-primary-light);
}
/* games grid */
.hpb-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.hpb-game-card {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--hpb-bg-card);
    border-radius: 10px;
    padding: 0.8rem;
    border: 1px solid var(--hpb-border);
}
.hpb-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--hpb-primary);
    box-shadow: var(--hpb-shadow);
}
.hpb-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.hpb-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--hpb-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* category tabs */
.hpb-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.hpb-category-icon {
    width: 40px;
    height: 40px;
    background: var(--hpb-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.hpb-category-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--hpb-text);
}
/* cards */
.hpb-card {
    background: var(--hpb-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--hpb-border);
}
.hpb-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--hpb-primary-light);
}
.hpb-card-text {
    font-size: 1.3rem;
    line-height: 1.8rem;
    color: var(--hpb-text-muted);
}
/* features grid */
.hpb-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.hpb-feature-item {
    background: var(--hpb-bg-light);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--hpb-border);
    transition: all 0.3s ease;
}
.hpb-feature-item:hover {
    border-color: var(--hpb-primary);
}
.hpb-feature-icon {
    font-size: 2.4rem;
    color: var(--hpb-primary-light);
    margin-bottom: 0.8rem;
}
.hpb-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hpb-text);
    margin-bottom: 0.4rem;
}
.hpb-feature-desc {
    font-size: 1.1rem;
    color: var(--hpb-text-muted);
}
/* faq accordion */
.hpb-faq-item {
    background: var(--hpb-bg-card);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--hpb-border);
}
.hpb-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--hpb-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hpb-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.2rem;
    color: var(--hpb-text-muted);
    line-height: 1.6rem;
}
/* promotional links */
.hpb-promo-link {
    color: var(--hpb-primary-light);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}
.hpb-promo-link:hover {
    color: var(--hpb-text);
    text-decoration: underline;
}
/* testimonials */
.hpb-testimonial {
    background: var(--hpb-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--hpb-primary);
}
.hpb-testimonial-text {
    font-size: 1.3rem;
    color: var(--hpb-text);
    margin-bottom: 1rem;
    font-style: italic;
}
.hpb-testimonial-author {
    font-size: 1.2rem;
    color: var(--hpb-primary-light);
    font-weight: 600;
}
/* payment methods */
.hpb-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.hpb-payment-item {
    background: var(--hpb-bg-light);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hpb-text);
    border: 1px solid var(--hpb-border);
}
/* footer */
.hpb-footer {
    background: var(--hpb-bg-light);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--hpb-border);
}
.hpb-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.hpb-footer-brand p {
    font-size: 1.2rem;
    color: var(--hpb-text-muted);
    line-height: 1.6rem;
    margin-top: 1rem;
}
.hpb-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.hpb-footer-links a {
    background: var(--hpb-gradient);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--hpb-text);
    transition: all 0.3s ease;
}
.hpb-footer-links a:hover {
    transform: scale(1.05);
}
.hpb-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.hpb-footer-nav a {
    font-size: 1.2rem;
    color: var(--hpb-text-muted);
    transition: color 0.3s ease;
}
.hpb-footer-nav a:hover {
    color: var(--hpb-primary-light);
}
.hpb-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--hpb-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--hpb-border);
}
/* bottom navigation */
.hpb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(22, 33, 62, 0.98) 0%, rgba(15, 52, 96, 0.99) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--hpb-border);
    padding-bottom: env(safe-area-inset-bottom);
}
.hpb-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--hpb-text-muted);
}
.hpb-nav-btn:hover,
.hpb-nav-btn-active {
    color: var(--hpb-primary-light);
}
.hpb-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}
.hpb-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}
.hpb-nav-btn:active {
    transform: scale(0.9);
}
/* hide bottom nav on desktop */
@media (min-width: 769px) {
    .hpb-bottom-nav {
        display: none;
    }
}
/* main content padding for mobile */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}
/* utilities */
.hpb-text-center {
    text-align: center;
}
.hpb-mb-1 {
    margin-bottom: 1rem;
}
.hpb-mb-2 {
    margin-bottom: 2rem;
}
.hpb-mt-2 {
    margin-top: 2rem;
}
/* animations */
@keyframes hpb-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hpb-animate {
    animation: hpb-fadeIn 0.5s ease forwards;
}
/* list styles */
.hpb-list {
    list-style: none;
    padding: 0;
}
.hpb-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.3rem;
    color: var(--hpb-text-muted);
    border-bottom: 1px solid var(--hpb-border);
}
.hpb-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--hpb-primary-light);
    border-radius: 50%;
}
/* winners showcase */
.hpb-winners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.hpb-winner-item {
    background: var(--hpb-bg-card);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--hpb-border);
}
.hpb-winner-avatar {
    width: 40px;
    height: 40px;
    background: var(--hpb-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.hpb-winner-info {
    flex: 1;
}
.hpb-winner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hpb-text);
}
.hpb-winner-amount {
    font-size: 1.1rem;
    color: var(--hpb-primary-light);
    font-weight: 700;
}
/* rtp stats */
.hpb-rtp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}
.hpb-rtp-item {
    background: var(--hpb-bg-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.hpb-rtp-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--hpb-primary-light);
}
.hpb-rtp-label {
    font-size: 1rem;
    color: var(--hpb-text-muted);
}
/* responsive adjustments */
@media (max-width: 360px) {
    .hpb-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hpb-features-grid {
        grid-template-columns: 1fr;
    }
}
