/* App Specific Styles */

.app-container {
    padding-top: 100px;
    /* Account for fixed navbar */
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Inspiration Section */
.inspiration-section {
    margin-bottom: 80px;
}

.inspiration-header {
    margin-bottom: 30px;
}

.app-container .inspiration-header h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filter-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* ... (rest of file) */


.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    white-space: nowrap;
}

.chip:hover,
.chip.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Story Carousel */
.story-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(255, 255, 255, 0.05);
}

.story-carousel::-webkit-scrollbar {
    height: 6px;
}

.story-carousel::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 3px;
}

.story-card {
    min-width: 180px;
    max-width: 180px;
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: rgba(127, 0, 255, 0.3);
}

.card-image {
    width: 100%;
    padding-top: 100%;
    /* Enforce 1:1 Aspect Ratio using padding hack */
    position: relative;
    overflow: hidden;
    height: 0;
    /* Collapse height so padding defines it */
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #b084ff;
    /* Lighter violet */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge::before {
    content: '✦';
}

.card-content {
    padding: 10px;
}

.card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Generator Area */
.generator-area {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 30px;
    background: var(--color-surface);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.generator-banner {
    text-align: center;
    margin-bottom: 20px;
}

.generator-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label,
.control label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

textarea,
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    resize: vertical;
}

textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(127, 0, 255, 0.2);
}

.controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 18px;
    font-size: 1.2rem;
}


.story-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    white-space: pre-wrap !important;
    display: block;
    /* Preserve formatting */
}

@media (max-width: 768px) {
    .app-container {
        padding-top: 60px;
    }

    .generator-area {
        padding: 20px;
    }

    .card-image {
        height: 250px;
    }

    .app-container .inspiration-header h2 {
        font-size: 1.3rem;
    }

    .controls-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .story-body {
        font-size: 0.95rem;
    }

    .generator-banner p {
        font-size: 1rem;
    }

    .generator-banner h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .btn-large {
        padding: 10px;
        font-size: 1rem;
    }
}

/* Mobile Stacked Logo for App Pages */
.logo-mobile {
    display: none;
}

@media (max-width: 768px) {

    /* Hide regular logo on mobile in app pages */
    .logo-desktop {
        display: none;
    }

    /* Show stacked logo on mobile */
    .logo-mobile {
        display: flex;
        align-items: center;
        gap: 2px;
        text-decoration: none;
    }

    .logo-mobile .logo-text {
        display: flex;
        flex-direction: column;
        line-height: 1;
        font-family: 'Tomorrow', sans-serif;
        font-size: 1.1rem;
        color: white;
    }

    .logo-mobile .logo-text .logo-story {
        margin-bottom: -2px;
    }

    .logo-mobile .logo-x {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 2.2rem;
        color: var(--color-primary);
        line-height: 1;
        margin-left: 2px;
    }
}