/* Text2Audio Tool Specific Styles */

.audio-tool-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/api/placeholder/1600/400') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 60px 0;
}

.audio-tool-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.audio-tool-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.audio-tool-container {
    padding: 60px 0;
    background-color: var(--light-color);
}

.audio-tool-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.audio-tool-box {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.tool-section {
    margin-bottom: 30px;
}

.tool-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

select {
    height: 45px;
    cursor: pointer;
    background-color: white;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

span#rate-value, span#pitch-value {
    min-width: 35px;
    font-weight: 600;
    color: var(--primary-color);
}

.controls-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.button-group button {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-group button i {
    font-size: 0.9rem;
}

.button-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.output-section {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

#status-message {
    text-align: center;
    margin-bottom: 20px;
    min-height: 24px;
    font-weight: 600;
}

.success-message {
    color: var(--secondary-color);
}

.error-message {
    color: #ef4444;
}

.download-history {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 15px;
}

.download-history h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

#history-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

#history-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

#history-list li:last-child {
    border-bottom: none;
}

#history-list .history-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

#history-list .history-actions a {
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.features-section {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.features-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    text-align: center;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-list li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 15px;
    align-items: center;
}

.feature-list li i {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
}

.feature-list li h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.feature-list li p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.share-section {
    background-color: white;
    padding: 60px 0;
    text-align: center;
}

.share-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.share-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: white;
    transition: var(--transition);
}

.share-btn i {
    margin-right: 8px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: white;
}

.facebook {
    background-color: #1877f2;
}

.twitter {
    background-color: #1da1f2;
}

.linkedin {
    background-color: #0a66c2;
}

.email {
    background-color: #ea4335;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive styles */
@media (min-width: 768px) {
    .audio-tool-content {
        grid-template-columns: 3fr 2fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .audio-tool-header h1 {
        font-size: 2.2rem;
    }
    
    .audio-tool-header p {
        font-size: 1.1rem;
    }
    
    .audio-tool-box,
    .features-section {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group button {
        width: 100%;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .controls-section {
        grid-template-columns: 1fr;
    }
    
    .audio-tool-header h1 {
        font-size: 1.8rem;
    }
    
    .tool-section h2,
    .features-section h2 {
        font-size: 1.5rem;
    }
}
