/* 10s Poster Maker - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
}

.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Home Page */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-content {
    text-align: center;
    padding: 40px 20px;
}

.home-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffd93d, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 30px;
}

.hero-icon {
    font-size: 5rem;
    margin: 30px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: #c0c0c0;
    margin-bottom: 40px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.header .sub {
    color: #a0a0a0;
    font-size: 0.95rem;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #c0c0c0;
    margin-bottom: 12px;
    display: block;
}

.upload-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: #ffd93d;
    background: rgba(255, 217, 61, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.8rem;
    color: #808080;
}

.preview-image {
    display: none;
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    object-fit: cover;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

/* Input Fields */
.section {
    margin-bottom: 30px;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #a0a0a0;
}

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #ffd93d;
    background: rgba(255, 217, 61, 0.08);
}

.input-field::placeholder {
    color: #606060;
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.style-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.style-card:hover {
    border-color: #ffd93d;
    background: rgba(255, 217, 61, 0.1);
}

.style-card.selected {
    border-color: #ffd93d;
    background: rgba(255, 217, 61, 0.15);
}

.style-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #ffd93d;
}

.style-description {
    font-size: 0.8rem;
    color: #a0a0a0;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd93d, #ff6b9d);
    color: #1a1a2e;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 217, 61, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-top: 15px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Generating Page */
.generating {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffd93d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.generating-content h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.generating-content .sub {
    color: #a0a0a0;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd93d, #ff6b9d);
    width: 0%;
    transition: width 0.3s ease;
}

.status-text {
    color: #c0c0c0;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Result Page */
.section-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #c0c0c0;
    margin-bottom: 12px;
}

.image-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

.image-container img {
    width: 100%;
    display: block;
}

/* Brand Footer */
.brand-footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 30px;
}

.brand-text {
    color: #606060;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
    .home-content h1 {
        font-size: 2rem;
    }
    
    .style-grid {
        grid-template-columns: 1fr;
    }
}
