/* Main CSS */

/* Navigation */
#navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navigation);
    background: hsla(220, 15%, 6%, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsla(195, 100%, 50%, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all var(--duration-normal) ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo-icon {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--neon-blue));
    animation: pulse-neon 2s ease-in-out infinite;
}

.nav-logo-text {
    font-size: var(--font-size-2xl);
    font-weight: bold;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neon-glow 2s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.nav-item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: all var(--duration-normal) ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--neon-blue);
    background: hsla(195, 100%, 50%, 0.1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    border-radius: 1px;
}

.nav-agent {
    margin-left: 1rem;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-buttons .btn-agent {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.nav-mobile-toggle {
    display: none;
    width: 2rem;
    height: 2rem;
    color: var(--neon-blue);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--duration-normal) ease;
}

.nav-mobile-toggle:hover {
    color: var(--neon-cyan);
    transform: scale(1.1);
}

.nav-mobile-toggle svg {
    width: 100%;
    height: 100%;
}

.nav-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsla(220, 15%, 6%, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsla(195, 100%, 50%, 0.2);
    padding: 1rem;
    display: none;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    z-index: 999;
}

.nav-mobile-menu.open {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mobile-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nav-mobile-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--muted-foreground);
    transition: all var(--duration-normal) ease;
    display: block;
}

.nav-mobile-item:hover,
.nav-mobile-item.active {
    color: var(--neon-blue);
    background: hsla(195, 100%, 50%, 0.1);
}

.nav-mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Mobile Top Buttons - 只在手機版顯示 */
.nav-mobile-top-buttons {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

.btn-mobile-register {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    animation: pulse-scale 2s ease-in-out infinite;
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: white !important;
    border: 2px solid #dc2626 !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.btn-mobile-register:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
    border-color: #b91c1c !important;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
    transform: scale(1.05);
    color: white !important;
}

/* 與誠徵代理按鈕相同的縮放動畫效果 */
@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyber-dark), var(--background), var(--cyber-darker));
}

.hero-effects {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(hsla(195, 100%, 30%, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, hsla(195, 100%, 30%, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 4xl;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: var(--font-size-8xl);
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neon-glow 2s ease-in-out infinite;
}

.hero-description {
    font-size: var(--font-size-2xl);
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 32rem;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat:nth-child(1) .stat-number {
    color: var(--neon-cyan);
}

.stat:nth-child(2) .stat-number {
    color: var(--neon-pink);
}

.stat:nth-child(3) .stat-number {
    color: var(--neon-green);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-dice {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.floating-dice-1 {
    top: 25%;
    left: 10%;
    color: var(--neon-blue);
}

.floating-dice-2 {
    top: 33%;
    right: 10%;
    color: var(--neon-pink);
    animation-delay: 1s;
}

.floating-dice-3 {
    bottom: 25%;
    left: 25%;
    color: var(--neon-cyan);
    animation-delay: 2s;
}

/* Games Section */
.games-section {
    padding: var(--section-padding);
    position: relative;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 2rem;
}

/* Promotions Section */
.promotions-section {
    padding: var(--section-padding);
    background: hsla(220, 15%, 12%, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
}

.promotion-card {
    text-align: center;
    padding: 2rem;
}

.promotion-icon {
    display: inline-flex;
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.promotion-icon.icon-crown {
    background: hsla(50, 100%, 60%, 0.2);
    color: var(--neon-yellow);
}

.promotion-icon.icon-gift {
    background: hsla(330, 100%, 70%, 0.2);
    color: var(--neon-pink);
}

.promotion-icon.icon-star {
    background: hsla(270, 100%, 70%, 0.2);
    color: var(--neon-purple);
}

.promotion-icon svg {
    width: 2rem;
    height: 2rem;
}

.promotion-title {
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.promotion-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Features Section */
.features-section {
    padding: var(--section-padding);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature:nth-child(1) .feature-icon {
    color: var(--neon-green);
}

.feature:nth-child(2) .feature-icon {
    color: var(--neon-blue);
}

.feature:nth-child(3) .feature-icon {
    color: var(--neon-pink);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--muted-foreground);
}

/* Footer */
#footer {
    background: var(--cyber-darker);
    padding: 3rem 0;
    border-top: 1px solid hsla(195, 100%, 50%, 0.2);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--neon-blue));
}

.footer-logo-text {
    font-size: var(--font-size-2xl);
    font-weight: bold;
    color: var(--neon-blue);
}

.footer-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
}

/* Customer Service */
#customer-service {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-customer-service);
}

.customer-service-button {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neon-blue);
    cursor: pointer;
    transition: all var(--duration-normal) ease;
    position: relative;
}

.customer-service-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-neon-cyan);
}

.customer-service-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.customer-service-bubble {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: bubble-bounce 2s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.customer-service-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 1rem;
    border: 6px solid transparent;
    border-top-color: white;
}

.customer-service-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}

@keyframes bubble-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Cookie Consent */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-cookie-consent);
    background: var(--cyber-dark);
    border-top: 2px solid var(--neon-blue);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform var(--duration-normal) ease;
}

#cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    flex: 1;
    font-size: var(--font-size-base);
    color: var(--foreground);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-accept {
    background: var(--neon-green);
    color: var(--cyber-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) ease;
}

.cookie-accept:hover {
    background: var(--neon-cyan);
    transform: scale(1.05);
}

.cookie-decline {
    background: transparent;
    color: var(--muted-foreground);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--duration-normal) ease;
}

.cookie-decline:hover {
    color: var(--foreground);
    border-color: var(--neon-blue);
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: var(--z-back-to-top);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--neon-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: all var(--duration-normal) ease;
}

#back-to-top.show {
    opacity: 1;
    transform: scale(1);
}

#back-to-top:hover {
    background: var(--neon-pink);
    transform: scale(1.1);
}

.back-to-top-icon {
    width: 1.25rem;
    height: 1.25rem;
} 