/* SPA Layout & Components */

/* ============================================
   SIMPLE LANDING PAGE
   ============================================ */
.landing-page-simple {
    min-height: calc(100vh - var(--header-height, 70px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8, 2rem) var(--space-4, 1rem);
}

.simple-hero {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.simple-content {
    text-align: center;
}

.simple-headline {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-text, #1F2937);
    margin-bottom: var(--space-4, 1rem);
    line-height: 1.2;
    font-family: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
}

.simple-subheadline {
    font-size: 1.125rem;
    color: var(--color-text-secondary, #6B7280);
    margin-bottom: var(--space-8, 2rem);
    font-weight: 400;
}

/* Email Form */
.email-form {
    margin-bottom: var(--space-6, 1.5rem);
}

.email-input-group {
    display: flex;
    gap: var(--space-3, 0.75rem);
    max-width: 400px;
    margin: 0 auto var(--space-4, 1rem);
}

.email-input {
    flex: 1;
    padding: 12px 16px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    color: #1F2937;
    transition: all 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.email-input::placeholder {
    color: #9CA3AF;
}

/* Form Message */
.form-message {
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 12px;
    display: none;
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message-info {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Magic Link Confirmation */
.magic-link-confirmation {
    animation: fadeIn 0.4s ease-out;
}

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.magic-link-confirmation h2 {
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.magic-link-confirmation p {
    color: #6B7280;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.confirmation-subtitle {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-bottom: 1.5rem;
}

/* Button Loader */
.btn-loader {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .landing-page-simple {
        padding: 1.5rem 1rem;
    }

    .simple-headline {
        font-size: 1.75rem;
    }

    .simple-subheadline {
        font-size: 1rem;
    }

    .email-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .email-input,
    .btn {
        width: 100%;
    }
}

/* ============================================
   END SIMPLE LANDING PAGE
   ============================================ */

/* ============================================
   HOME VIEW - AI TOYS MENU
   ============================================ */
.home-container {
    min-height: calc(100vh - var(--header-height, 70px));
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.home-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.home-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.home-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.home-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Toys Grid */
.toys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.toy-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.toy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.toy-card.active:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.toy-card.active:hover::before {
    transform: scaleX(1);
}

.toy-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #f5f5f5, #fafafa);
}

.toy-card.coming-soon:hover {
    transform: none;
}

.toy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.toy-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.toy-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.toy-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #E5E7EB;
    color: #6B7280;
    align-self: flex-start;
}

.toy-status.ready {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Animations for toy cards */
.toy-card:nth-child(1) { --card-index: 1; }
.toy-card:nth-child(2) { --card-index: 2; }
.toy-card:nth-child(3) { --card-index: 3; }
.toy-card:nth-child(4) { --card-index: 4; }
.toy-card:nth-child(5) { --card-index: 5; }
.toy-card:nth-child(6) { --card-index: 6; }
.toy-card:nth-child(7) { --card-index: 7; }
.toy-card:nth-child(8) { --card-index: 8; }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.home-footer {
    text-align: center;
    position: relative;
    z-index: 1;
}

.inspiration-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .home-container {
        padding: 2rem 1rem;
    }

    .home-title {
        font-size: 2rem;
    }

    .home-subtitle {
        font-size: 1rem;
    }

    .toys-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .toy-icon {
        font-size: 2rem;
    }
}

/* ============================================
   END HOME VIEW
   ============================================ */

/* View Management */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* ============================================
   TOY VIEW (Individual Toy Pages)
   ============================================ */
.toy-container {
    min-height: calc(100vh - var(--header-height, 70px));
    display: flex;
    flex-direction: column;
    background: #F8F9FA;
}

.toy-header {
    background: white;
    border-bottom: 1px solid #E1E4E8;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.back-btn {
    background: #F8F9FA;
    border: 1px solid #E1E4E8;
    color: #586069;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: #E1F5FE;
    border-color: #0366d6;
    color: #0366d6;
}

.toy-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #24292e;
    margin: 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.toy-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-message {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    border: 1px solid #E1E4E8;
}

.placeholder-message h2 {
    font-size: 1.5rem;
    color: #24292e;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.placeholder-message p {
    color: #586069;
    font-size: 1rem;
    margin: 0;
}

/* Mobile Responsiveness for Toy View */
@media (max-width: 768px) {
    .toy-header {
        padding: 1rem;
    }

    .toy-title {
        font-size: 1.25rem;
    }

    .toy-content {
        padding: 1rem;
    }

    .placeholder-message {
        padding: 2rem 1rem;
    }
}

/* ============================================
   END TOY VIEW
   ============================================ */
