/* Essay Title Generator - Modern CSS Styles */
.etg-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

/* Header Styles */
.etg-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
}

.etg-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.etg-header h2 i {
    color: #f39c12;
}

.etg-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Input Section */
.etg-input-section {
    margin-bottom: 30px;
}

.etg-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.etg-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.etg-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}

.etg-input::placeholder {
    color: #bdc3c7;
}

/* Button Styles */
.etg-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.etg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.etg-btn:active {
    transform: translateY(0);
}

.etg-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.etg-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
}

.etg-btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.etg-btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
}

/* Results Section */
.etg-results-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #e1e5e9;
    margin-bottom: 20px;
}

.etg-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.etg-results-header h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.etg-results-header h3 i {
    color: #9b59b6;
}

.etg-results-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Titles List */
.etg-titles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.etg-title-item {
    background: white;
    padding: 18px 20px;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.etg-title-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #e74c3c;
}

.etg-title-item::before {
    content: '"';
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 24px;
    color: #bdc3c7;
    font-family: serif;
}

.etg-title-item::after {
    content: '"';
    position: absolute;
    right: 15px;
    bottom: 10px;
    font-size: 24px;
    color: #bdc3c7;
    font-family: serif;
}

.etg-title-text {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    padding: 0 25px;
}

/* Loading Animation */
.etg-loading {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
}

.etg-loading i {
    margin-right: 10px;
    color: #3498db;
    font-size: 18px;
}

/* Footer */
.etg-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f4f8;
}

.etg-footer p {
    color: #95a5a6;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.etg-footer i {
    color: #3498db;
}

/* Success Message */
.etg-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .etg-container {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .etg-input-group {
        flex-direction: column;
    }
    
    .etg-input {
        min-width: 100%;
    }
    
    .etg-btn {
        width: 100%;
        justify-content: center;
    }
    
    .etg-results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .etg-results-actions {
        justify-content: center;
    }
    
    .etg-header h2 {
        font-size: 24px;
        flex-direction: column;
        gap: 5px;
    }
    
    .etg-title-item {
        padding: 15px;
    }
    
    .etg-title-text {
        font-size: 15px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .etg-container {
        padding: 15px 10px;
    }
    
    .etg-results-section {
        padding: 15px;
    }
    
    .etg-header h2 {
        font-size: 22px;
    }
    
    .etg-title-text {
        font-size: 14px;
    }
}

/* Animation for title generation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.etg-title-item {
    animation: fadeInUp 0.5s ease-out;
}