/* CringePitch Generator Frontend Styles */

.cringepitch-generator-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cringepitch-header {
    text-align: center;
    margin-bottom: 30px;
}

.cringepitch-header h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

.cringepitch-header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.cringepitch-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.intensity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #7f8c8d;
}

.intensity-value {
    text-align: center;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 5px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-action {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #3498db;
    color: white;
}

.btn-secondary:hover {
    background: #2980b9;
}

.btn-action {
    background: #2ecc71;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-action:hover {
    background: #27ae60;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Container */
.results-container {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-container h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* WhatsApp Style Chat Bubbles */
.pitch-lines {
    max-width: 600px;
    margin: 0 auto 20px;
}

.pitch-item {
    margin-bottom: 20px;
    animation: slideIn 0.5s ease-out;
}

.pitch-bubble {
    background: #DCF8C6;
    padding: 15px;
    border-radius: 10px;
    position: relative;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pitch-bubble.hindi {
    background: #E3F2FD;
}

.pitch-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid;
    border-left-color: inherit;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.pitch-text {
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.pitch-lang {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Error Message */
.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
}