:root {
    --bg-color: #fff9f2; /* Warm peach/beige background */
    --text-primary: #4a4a4a; /* Soft dark gray for readability */
    --text-secondary: #8c8c8c;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.9);
    --accent: #ff8fa3; /* Soft pink accent */
    --accent-glow: rgba(255, 143, 163, 0.4);
    --youtube: #ff0000;
    --instagram: #e1306c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Animation */
.background-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 209, 220, 0.6); /* Pastel pink */
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 236, 179, 0.6); /* Soft yellow */
    bottom: 20%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: rgba(255, 204, 182, 0.6); /* Light peach */
    bottom: -20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Layout Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Search Bar */
.header {
    position: sticky;
    top: 10px;
    z-index: 100;
}

.search-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(255, 143, 163, 0.15);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 12px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
    animation: fadeInUp 0.8s ease-out;
}

.profile-img-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(255, 154, 158, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}

.profile-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: #333;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-btn.youtube {
    background: #fff;
    border-color: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.social-btn.youtube:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

.social-btn.instagram {
    background: #fff;
    border-color: rgba(225, 48, 108, 0.1);
    color: #e1306c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.2);
}

/* Sections */
.section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

.section-title i {
    color: var(--accent);
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: -8px;
    margin-bottom: 8px;
}

/* Horizontal Scroll for Content */
.scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-wrapper:hover .scroll-btn {
    opacity: 1;
    pointer-events: auto;
}

.scroll-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    color: var(--accent);
}

.scroll-left {
    left: -18px;
}

.scroll-right {
    right: -18px;
}

@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
}

.horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.content-card {
    min-width: 140px;
    width: 140px;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--text-primary);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-thumb {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.content-card:hover .thumb-img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.content-card:hover .play-overlay {
    background: var(--accent);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.content-info {
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.content-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}

.content-info h3 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.content-info i.more-icon {
    font-size: 12px;
    color: var(--text-secondary);
    padding-top: 2px;
    cursor: pointer;
}

.content-info p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
}

/* Grid App Cards */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.app-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateX(5px);
    border-color: rgba(255, 143, 163, 0.4);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(255, 143, 163, 0.1);
}

.app-card:hover::before {
    opacity: 1;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 143, 163, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
    border: 1px solid rgba(255, 143, 163, 0.2);
}

.app-details h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.app-details p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

/* Footer */
.footer {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.footer .copyright {
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #fff9f2;
    border-radius: 24px;
    padding: 32px 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(255, 143, 163, 0.2);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(30px);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.modal-content h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 800;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-content p strong {
    color: var(--accent);
}

.support-btn {
    background: linear-gradient(135deg, #ff8fa3, #ffb3c1);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 143, 163, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 143, 163, 0.4);
}

.skip-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.skip-btn:hover {
    color: var(--text-primary);
}
