/**
 * PlayCity Block - Main Index Page Styles
 * Apple-inspired design with dark theme
 */

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

/* User Dropdown - Matches www.playcity.kr */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-btn:hover {
    opacity: 0.8;
}

.user-dropdown-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
}

.user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-avatar-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Login Button - Matches www.playcity.kr */
.login-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 32px;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* User Dropdown Menu - Matches www.playcity.kr */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 240px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.user-dropdown-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* User Dropdown Header */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-dropdown-info {
    flex: 1;
}

.user-nickname {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: #9aa0a6;
}

/* Dropdown Items - Matches www.playcity.kr */
.user-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-item.logout {
    color: #9aa0a6;
}

.user-dropdown-item.logout:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* User Menu Button - Enhanced styling to match www.playcity.kr */
.user-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    min-height: 32px !important;
    cursor: pointer !important;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.user-menu-dropdown {
    position: fixed;
    top: 60px;
    right: 24px;
    margin-top: 8px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 240px;
    padding: 8px 0;
    z-index: 1001;
}

/* User dropdown styles */
.user-info-section {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.user-nickname {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.user-email {
    font-size: 12px;
    color: #9aa0a6;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.user-menu-item i {
    width: 16px;
    font-size: 14px;
    opacity: 0.7;
}

.user-menu-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-item {
    color: #9aa0a6;
}

.logout-item:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Menu Greeting */
.menu-greeting {
    padding: 12px 16px;
    margin: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    word-break: keep-all;
    line-height: 1.4;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

/* Admin Item Border */
.admin-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Astra Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    background: #000;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Enable smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Main Container with Space Background */
.hero-container {
    position: relative;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

/* Space background */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 0;
}

/* Stars container */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Google AI Header - Exact Replica */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: transparent;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 24px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.dropdown-arrow {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.9);
    margin-left: 4px;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.nav-center a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-center a:hover {
    opacity: 0.7;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Removed unused cta-outline, cta-filled, and gemini-icon classes */

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0 24px;
    text-align: center;
    box-sizing: border-box;
}

/* Get Started Heading - Exact Google AI Style */
.hero-heading {
    font-size: 72px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-heading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    white-space: nowrap;
}

.hero-heading-text.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.hero-heading-text.exit {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-40px);
}

/* Button Grid - flexbox layout for tags */
.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Action Buttons - Tag Style */
.action-btn {
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Audio controls */
.audio-controls {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 20, 20, 0.9);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.audio-toggle {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.audio-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.volume-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 30px;
    text-align: center;
}

/* Dark Apple-style First Intro Section */
.first-intro {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        #000000 0%,
        #1a1a1a 50%,
        #000000 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.intro-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0.7;
    will-change: transform;
}

.intro-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6) contrast(1.1);
    transform: scale(1.0);
    transition: transform 0.1s ease-out;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1200px;
    padding: 120px 40px;
    margin: 0 auto;
    width: 100%;
}

.intro-title {
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    word-break: keep-all;
    white-space: nowrap;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-right: 0.3em;
}

.title-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.title-word.highlight {
    color: #30d158;
    font-weight: 700;
    -webkit-text-stroke: 1px rgba(48, 209, 88, 0.4);
}

.intro-description {
    font-size: clamp(19px, 2.5vw, 28px);
    color: #a1a1a6;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.005em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    word-break: keep-all;
    max-width: 600px;
}

.intro-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(48, 209, 88, 0.08);
    color: #30d158;
    padding: 12px 24px;
    border-radius: 24px;
    border: 1px solid rgba(48, 209, 88, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 44px;
    word-break: keep-all;
}

.intro-cta-btn:hover {
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.4);
    transform: translateY(-1px);
}

.intro-cta-btn:active {
    transform: translateY(0);
}

.intro-cta-btn .btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Responsive Design - Exact Google AI Breakpoints */
@media (max-width: 1068px) {
    .intro-content {
        padding: 100px 40px;
    }
}

@media (max-width: 1024px) {
    /* Tablet adjustments */
    .button-grid {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }

    .nav-center {
        display: none;
    }

    .nav-right {
        gap: 8px;
    }

    /* Removed unused cta button styles */

    .hero-heading {
        font-size: 58px; /* 20% reduction */
        margin-bottom: 48px;
    }

    .hero-content {
        padding: 0 16px;
    }

    /* Mobile: Smaller tags */
    .button-grid {
        gap: 8px;
        max-width: 100%;
    }

    .action-btn {
        font-size: 12px;
        padding: 0 12px;
        height: 36px;
    }
    
    /* Mobile dropdown adjustments */
    .user-menu-dropdown {
        right: 16px;
        min-width: 200px;
    }
}

@media (max-width: 734px) {
    .intro-content {
        padding: 80px 20px;
    }

    .intro-title {
        margin-bottom: 24px;
        white-space: normal;
        line-height: 1.15;
    }

    .title-word {
        margin-right: 0.25em;
    }

    .intro-description {
        margin-bottom: 32px;
    }

    .intro-cta-btn {
        padding: 11px 22px;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 18px;
    }

    .hero-heading {
        font-size: 48px;
        margin-bottom: 40px;
    }

    .action-btn {
        height: 32px;
        font-size: 11px;
        padding: 0 10px;
        gap: 4px;
    }

    .action-btn-icon {
        width: 12px;
        height: 12px;
    }

    .intro-content {
        padding: 60px 16px;
    }

    .intro-background {
        opacity: 0.3;
    }

    .intro-title {
        line-height: 1.2;
    }

    .title-word {
        margin-right: 0.2em;
    }
}