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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Input Section */
.input-section {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

#youtube-url {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

#get-transcript-btn {
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

#get-transcript-btn:hover {
    background: #555;
}

#get-transcript-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error {
    background: #ff4444;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Development Notice */
.dev-notice {
    background: #ff9800;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Result Section */
.result-section {
    margin-bottom: 60px;
}

.video-section {
    text-align: center;
    margin-bottom: 2rem;
}

#youtube-player {
    max-width: 100%;
    margin: 0 auto;
}

#video-title {
    margin-top: 1rem;
    color: #4CAF50;
    font-size: 1.5rem;
}

/* Transcript Section */
.transcript-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
}

.transcript-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.transcript-controls button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.transcript-controls button:hover {
    background: #45a049;
}

/* Transcript Container */
.transcript-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    padding: 1rem;
}

.transcript-item {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.transcript-item:hover {
    background: #f0f8f0;
    border-left-color: #4CAF50;
}

.transcript-item.active {
    background: #e8f5e8;
    border-left-color: #4CAF50;
    font-weight: 600;
}

.transcript-time {
    color: #666;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* Features Section */
.features {
    margin-bottom: 60px;
}

.features h2 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f9f9f9;
}

.feature h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Use Cases Section */
.use-cases {
    margin-bottom: 60px;
}

.use-cases h2 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.use-case {
    padding: 2rem;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    text-align: center;
}

.use-case h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* FAQ Section */
.faq {
    margin-bottom: 60px;
}

.faq h2 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f9f9f9;
}

.faq-item h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1rem;
    }
    
    .input-section {
        flex-direction: column;
    }
    
    .transcript-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}