/* Variables */
:root {
    --primary-color: #4F46E5;
    --secondary-color: #818CF8;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --background: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%);
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 30% 70% 50% 50% / 50% 50% 50% 50%;
}

.shape:nth-child(1) {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 15%;
}

.shape:nth-child(2) {
    width: 140px;
    height: 140px;
    top: 65%;
    right: 18%;
    border-radius: 40% 60% 50% 50% / 50% 50% 50% 50%;
}

.shape:nth-child(3) {
    width: 120px;
    height: 120px;
    bottom: 25%;
    left: 22%;
    border-radius: 45% 55% 50% 50% / 50% 50% 50% 50%;
}

/* Container Styles */
.onboarding-container {
    width: 100%;
    max-width: 800px;
    height: 600px;
    background: var(--white);
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.slides-container {
    width: 100%;
    height: calc(100% - 80px);
    position: relative;
}

/* Slide Styles */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 40px 120px 40px;
    display: block;
    background: var(--white);
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide.next {
    transform: translateX(100%);
}

.slide-content {
    text-align: left;
    max-width: 640px;
    padding: 0 20px;
    margin: 40px auto 0;
    height: calc(100% - 80px);
}

.slide-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #4338CA;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 16px;
}

.slide-content h1 i {
    font-size: 36px;
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.08);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
}

.slide-content h1 i:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
    background: rgba(79, 70, 229, 0.12);
}

.slide-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 400px;
}

/* Welcome slide specific styles */
.slide[data-index="0"] .slide-content {
    text-align: center;
    margin-top: 40px;
}

.slide[data-index="0"] .slide-content h1 {
    justify-content: center;
}

.slide[data-index="0"] .slide-content p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.slide[data-index="0"] .slide-icon {
    margin: 0 auto 32px;
}

/* Other slides icon alignment */
.slide:not([data-index="0"]) .slide-icon {
    margin: 0 0 32px 0;
}

/* Feature List Styles */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 32px auto;
    max-width: 640px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 16px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.feature-item i {
    font-size: 24px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.feature-item span {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.feature-item.ai-filter {
    min-width: unset;
    background: rgba(79, 70, 229, 0.05);
    border: none;
    padding: 20px;
    margin-top: 0;
}

.feature-item.ai-filter:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.feature-item.ai-filter i {
    font-size: 24px;
}

.feature-item.ai-filter span {
    font-size: 15px;
    font-weight: 600;
}

/* Navigation Styles */
.navigation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-button:hover {
    background: var(--background);
    box-shadow: var(--shadow-md);
}

.nav-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.progress-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E5E7EB;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    width: 24px;
    border-radius: 12px;
    background: var(--primary-color);
}

/* Start Button Styles */
.start-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 0 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.start-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.start-button i {
    font-size: 24px;
}

/* YouTube Connect Button */
.button-container {
    position: fixed;
    bottom: 100px;
    right: 40px;
    margin: 0;
    padding: 0;
    z-index: 10;
}

#youtube-button-container {
    margin: 0;
}

.youtube-connect {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
}

.youtube-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.2);
}

.youtube-connect i {
    font-size: 20px;
}

.youtube-connected {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #34D399 0%, #059669 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.15);
}

.youtube-connected i {
    font-size: 20px;
}

.error-message {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.error-message i {
    font-size: 16px;
}

/* Kidding Icon Styles */
.slide-icon {
    font-size: 56px;
    color: var(--primary-color);
    height: 100px;
    width: 100px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.kidding-icon {
    position: relative;
    background: #F3F4F6;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pebble-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 45% 55% 50% 50% / 50% 50% 50% 50%;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Coming Soon Styles */
.coming-soon {
    text-align: center;
    padding: 40px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 24px;
    margin-top: 40px;
}

.coming-soon i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.coming-soon span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.coming-soon p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 320px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .onboarding-container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .slide {
        padding: 20px 20px 100px 20px;
    }

    .slide-content {
        max-width: 100%;
        padding: 0 16px;
        margin-top: 40px;
    }

    .slide-content h1 {
        font-size: 32px;
        line-height: 1.4;
    }

    .slide-content p {
        font-size: 16px;
    }

    .feature-list {
        flex-direction: column;
        gap: 16px;
    }

    .navigation {
        padding: 0 20px;
    }

    .button-container {
        bottom: 90px;
        right: 20px;
    }
    
    .youtube-connect {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Auth Section Styles */
.auth-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.google-login {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #444;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.google-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #f8f9fa;
}

.google-login i {
    font-size: 20px;
    color: #4285f4;
}

.terms-section {
    text-align: center;
    margin-top: 20px;
}

.terms-button {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.terms-button:hover {
    background: rgba(79, 70, 229, 0.1);
}

.terms-button i {
    font-size: 16px;
}

.terms-notice {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 300px;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.slide-next-button {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.slide-next-button:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.slide-next-button:disabled {
    background: #E5E7EB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.slide-next-button i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.slide-next-button:hover:not(:disabled) i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .slide-next-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 16px;
    }
}

.feature-points {
    text-align: left;
    margin: 2rem 0;
    padding: 0 2rem;
}

.feature-points p {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
    font-weight: 600;
}

.feature-points p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .feature-points {
        padding: 0 1rem;
    }
    
    .feature-points p {
        font-size: 1rem;
        margin: 0.8rem 0;
    }
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.legal-modal {
    background: #000000;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    width: 500px;
    height: 550px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.legal-section p {
    color: #E5E7EB;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #E5E7EB;
}

.legal-section li {
    margin: 0.5rem 0;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* 모달 배경 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
} 