/* 10s Premium PPT - 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, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 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: 700px;
    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, #c9a06b, #d4a574, #f5e6d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

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

.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: 20px;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #c9a06b, #d4a574);
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 30px;
}

/* 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;
}

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

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

.text-area {
    width: 100%;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 160, 107, 0.3);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.95rem;
    color: #fff;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-area:focus {
    outline: none;
    border-color: #c9a06b;
    background: rgba(201, 160, 107, 0.05);
}

.text-area::placeholder {
    color: #606060;
}

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

.style-card {
    background: rgba(255, 255, 255, 0.03);
    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: #c9a06b;
    background: rgba(201, 160, 107, 0.05);
}

.style-card.selected {
    border-color: #c9a06b;
    background: rgba(201, 160, 107, 0.1);
}

.style-color {
    height: 40px;
    border-radius: 8px;
    margin-bottom: 10px;
}

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

.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, #c9a06b, #d4a574);
    color: #1a1a1a;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 160, 107, 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: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: #c9a06b;
    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, #c9a06b, #d4a574);
    width: 0%;
    transition: width 0.3s ease;
}

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

/* PPT Preview */
.ppt-preview-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.ppt-slide {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #c9a06b, #f5e6d3);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.slide-content {
    text-align: center;
    color: #1a1a1a;
}

.slide-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.slide-point {
    font-size: 1rem;
    margin: 10px 0;
    text-align: left;
}

/* Slide Navigation */
.slide-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(201, 160, 107, 0.2);
    border-color: #c9a06b;
}

#slide-counter {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.voice-player {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 160, 107, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.voice-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.voice-title {
    font-weight: 600;
    color: #c9a06b;
}

.voice-status {
    font-size: 0.85rem;
    color: #a0a0a0;
}

.player-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.player-btn {
    background: linear-gradient(135deg, #c9a06b, #d4a574);
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.player-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(201, 160, 107, 0.3);
}

.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.audio-progress {
    height: 100%;
    background: linear-gradient(90deg, #c9a06b, #d4a574);
    width: 0%;
    transition: width 0.2s linear;
}

.narration-text {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c0c0c0;
}

/* 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;
    }
    
    .ppt-slide {
        padding: 25px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
}
