/* Public Speaking Coach - Simple Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Navigation */
.tabs {
    display: flex;
    background: #f8f9ff;
    border-bottom: 2px solid #e1e8ed;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #667eea;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: white;
    color: #5a67d8;
    border-bottom-color: #667eea;
    box-shadow: 0 -2px 10px rgba(102, 126, 234, 0.1);
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

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

.tab-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #5a67d8;
    text-align: center;
}

/* Script Enhancement */
.script-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.input-section, .output-section {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e1e8ed;
}

.input-section label {
    display: block;
    font-weight: 600;
    color: #5a67d8;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#speech-input {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

#speech-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.script-output {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

.script-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced script cues */
.breathing-cue {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 5px;
    display: inline-block;
    border: 1px solid #90caf9;
}

.pause-cue {
    background: linear-gradient(135deg, #fff3e0, #ffcc80);
    color: #e65100;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 5px;
    display: inline-block;
    border: 1px solid #ffab40;
}

/* Coaching Guide */
.coaching-steps {
    display: grid;
    gap: 25px;
}

.step-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-card h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-content {
    padding: 25px;
}

.step-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.step-content ul {
    list-style: none;
    padding: 0;
}

.step-content li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.step-content li:last-child {
    border-bottom: none;
}

.step-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Affirmations */
.affirmations li {
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    margin: 10px 0;
    padding: 15px;
    font-style: italic;
    color: #5a67d8;
    border-left: 5px solid #667eea;
}

.affirmations li::before {
    display: none;
}

.affirmations li.removable {
    position: relative;
    padding-right: 50px;
}

.remove-affirmation {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-affirmation {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#custom-affirmation {
    flex: 1;
    min-width: 300px;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1rem;
}

#custom-affirmation:focus {
    outline: none;
    border-color: #667eea;
}

/* Premium Features */
.premium-teaser {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.premium-teaser h3 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.premium-content {
    color: white;
}

.premium-description {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.premium-features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.feature-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.feature-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.premium-button {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    display: inline-block;
    margin: 25px auto;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
}

.premium-button:hover {
    background: linear-gradient(135deg, #ffb347, #ffa500);
}

.premium-note {
    text-align: left;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

.premium-badge {
    background: #ffd700;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

/* Breathing Exercise */
.breathing-exercise {
    text-align: center;
    margin: 20px 0;
}

.breathing-circle {
    width: 150px;
    height: 150px;
    border: 3px solid #667eea;
    border-radius: 50%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #667eea;
    transition: all 0.3s ease;
}

.breathing-circle.inhale {
    transform: scale(1.2);
    background: rgba(102, 126, 234, 0.1);
}

.breathing-circle.exhale {
    transform: scale(0.8);
    background: rgba(102, 126, 234, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .script-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .input-section, .output-section {
        padding: 20px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .add-affirmation {
        flex-direction: column;
    }
    
    #custom-affirmation {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .step-card h3 {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .premium-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Premium Feature States */
.premium-feature:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success/Error Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 10px 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 10px 0;
}