/* ============================================
   Landing Page CSS - Page-Specific Styles
   ============================================
   Hero, Input Section, Features, Galleries
   Only used in landing.html
   ============================================ */

/* ============================================
   Landing Page Layout (Fixed Positioning)
   ============================================ */
/* Grid layout removed - using fixed positioning from shared.css */

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--accent-orange);
    border: 1px solid white;
    border-radius: var(--radius-full);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: center;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #A855F7;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-6);
    height: 32px;
    text-transform: uppercase;
}

.platform-badge-icon {
    width: 19.19px;
    height: 19.19px;
}

.hero-title {
    font-size: 80px;
    font-weight: var(--font-bold);
    line-height: 88px;
    margin-bottom: 20px;
    margin-top: 0;
    text-align: center;
}

.hero-title-line1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: 0;
}

.hero-title-line2 {
    display: block;
    margin-top: 0;
}

.hero-title span {
    display: inline-block;
}

.animated-text-wrapper {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
}

.animated-text {
    font-size: 80px;
    line-height: 80px;
    background: linear-gradient(90deg, #8B5CF6 0%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: opacity 300ms ease-in-out;
    font-weight: var(--font-bold);
}

.sparkle-icon {
    width: 36px;
    height: 36px;
    margin-top: -5px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: rotate(0deg) scale(1); }
    50% { opacity: 0.7; transform: rotate(180deg) scale(1.1); }
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-10);
    margin-top: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.hero-subtitle-icon {
    font-size: 24px;
}

/* ============================================
   Input Section
   ============================================ */
.input-section {
    width: 900px;
    min-height: auto;
    margin: 0 auto var(--space-16);
    background: #e8e8ea;  /* Figma와 동일한 밝은 회색 */
    border: 1px solid rgba(200, 200, 200, 0.5);  /* 은은한 테두리 */
    border-radius: 25px;
    padding: 15px 15px 12px 15px;
    box-shadow:
        0px 6px 20px rgba(0, 0, 0, 0.1),  /* 부드러운 그림자 */
        0px 2px 8px rgba(0, 0, 0, 0.05);  /* 가까운 그림자 */
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 2;  /* 글로우보다 위에 */
    isolation: isolate;  /* 글로우 효과 격리 */
}

/* 입력창 뒤 글로우 효과 - 아래쪽 중심 */
.input-section::before {
    content: '';
    position: absolute;
    top: 80%;  /* 아래쪽으로 이동 */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(236, 72, 153, 0.3) 0%,    /* 핑크 중심 */
        rgba(168, 85, 247, 0.2) 20%,   /* 보라 */
        rgba(34, 211, 238, 0.2) 40%,   /* 청록 */
        transparent 60%
    );
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

/* 추가 글로우 레이어 - 좌우 확산 */
.input-section::after {
    content: '';
    position: absolute;
    top: 70%;  /* 아래쪽 배치 */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250%;  /* 좌우로 더 넓게 */
    height: 150%;
    background: radial-gradient(
        ellipse at center,
        rgba(147, 51, 234, 0.15) 0%,   /* 밝은 보라 */
        rgba(59, 130, 246, 0.1) 25%,   /* 파란색 */
        rgba(34, 211, 238, 0.1) 45%,   /* 청록 */
        transparent 65%
    );
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
}

.input-container {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    height: 110px;
}

.input-field {
    flex: 1;
    width: 1130px;
    height: 110px;
    padding: 20px;
    background: transparent;
    border: none;
    border-radius: 20px;
    color: #2c2c2c;
    font-size: 18px;
    font-family: var(--font-primary);
    resize: none;
    overflow-y: hidden;
}

/* Animation text styling - gray color */
.input-field.animation-text {
    color: #9ca3af;
}

/* User input styling - dark color (default) */
.input-field.user-text {
    color: #2c2c2c;
}

.input-field::placeholder {
    color: #666666;
    font-size: 18px;
}

.input-field:focus {
    outline: none;
}

.tags-and-button-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-generate {
    padding: 0 20px;
    height: 48px;
    width: 160px;
    background: linear-gradient(135deg, #A855F7 0%, #8B5CF6 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 16px;
    box-shadow: 0px 4px 12px rgba(139, 92, 246, 0.25);
    flex-shrink: 0;
    margin-left: auto;
}

.btn-generate:hover {
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%);
    transform: translateY(-1px);
    box-shadow: 0px 6px 16px rgba(139, 92, 246, 0.35);
}

.btn-generate svg,
.btn-generate img {
    width: 20px;
    height: 20px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    overflow: visible;
    flex: 1;
}

.category-tag {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: var(--font-medium);
    color: #2c2c2c;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 20px;
}

.category-tag:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.category-tag.filter-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    font-size: 20px;
    font-weight: 300;
}

/* Flex line break helper */
.flex-break {
    flex-basis: 100%;
    height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

.filter-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.filter-icon.rotated {
    transform: rotate(180deg);
}

/* ============================================
   Feature Cards Section
   ============================================ */
.features {
    max-width: 1920px;
    margin: 0 auto var(--space-16);
    padding: 0 var(--space-6);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 29px;
    padding: 20px;
    gap: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-fast) var(--ease-default);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.feature-title {
    font-size: 18px;
    font-weight: var(--font-bold);
    color: #effbff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: left;
}

.feature-title .highlight {
    color: rgba(255, 255, 255, 0.9);
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
}

.feature-description {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    letter-spacing: -0.05px;
    margin: 0;
    text-align: left;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    max-width: 1920px;
    margin: 0 auto var(--space-12);
    padding: 0 var(--space-6);
}

.gallery:last-child {
    margin-bottom: var(--space-16);
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 23px;
    margin: 0 auto var(--space-6);
    width: 600px;
    height: 44px;
    position: relative;
}

.game-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    max-width: 420px;
}

.game-header__title {
    font-size: 28px;
    font-weight: var(--font-semibold);
    color: silver;
    margin: 0;
    letter-spacing: -0.96px;
    line-height: 21.6px;
    white-space: nowrap;
}

.game-header__link {
    color: #b79aff;
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-semibold);
    transition: color var(--duration-fast) var(--ease-default);
    line-height: 21.6px;
    white-space: nowrap;
}

.game-header__link:hover {
    color: var(--text-primary);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 21px;
    max-width: 1300px;
    margin: 0 auto;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1440px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .hero-title {
        font-size: 60px;
        line-height: 60px;
    }
    .animated-text {
        font-size: 48px;
        line-height: 48px;
    }
    .input-section {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 40px;
        line-height: 40px;
    }
    .animated-text {
        font-size: 32px;
        line-height: 32px;
    }
    .input-section {
        width: 95%;
        height: auto;
    }
}
