/* Çeviri Sayfası Özel Stilleri */

.translate-section {
    margin: 2rem 0;
}

.translate-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 173, 239, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.text-area-container {
    margin: 1.5rem 0;
    position: relative;
}

.text-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ADEF;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.text-label i {
    font-size: 1.4rem;
    color: #00ADEF;
}

.input-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.record-btn, .clear-btn, .speak-btn, .copy-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.record-btn {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.record-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.record-btn.recording {
    background: linear-gradient(135deg, #ff3742, #c92a2a);
    animation: pulse 1.5s infinite;
}

.clear-btn {
    background: linear-gradient(135deg, #57606f, #8395a7);
    color: white;
    box-shadow: 0 4px 15px rgba(87, 96, 111, 0.3);
}

.clear-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8395a7, #57606f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 96, 111, 0.4);
}

.speak-btn {
    background: linear-gradient(135deg, #00ADEF, #0097cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 173, 239, 0.3);
}

.speak-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 173, 239, 0.4);
}

.copy-btn {
    background: linear-gradient(135deg, #26de81, #20bf6b);
    color: white;
    box-shadow: 0 4px 15px rgba(38, 222, 129, 0.3);
}

.copy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 222, 129, 0.4);
}

.record-btn:disabled,
.clear-btn:disabled,
.speak-btn:disabled,
.copy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.text-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Comic Neue', cursive;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.text-input:focus {
    outline: none;
    border-color: #00ADEF;
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.1);
    background: white;
}

.text-input[readonly] {
    background: rgba(0, 173, 239, 0.05);
    cursor: default;
}

.translate-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

.language-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
}

.language-selector label {
    font-size: 1rem;
    font-weight: 600;
    color: #00ADEF;
    text-align: center;
    margin-bottom: 0.3rem;
}

.language-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #00ADEF;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #00ADEF;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.language-select:focus {
    outline: none;
    border-color: #0097cc;
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.1);
    background: white;
}

.language-select:hover {
    border-color: #0097cc;
    background: white;
}

.translate-btn {
    width: 100%;
    max-width: 250px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00ADEF, #0097cc);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 173, 239, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
}

.translate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 173, 239, 0.4);
}

.translate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.translate-btn i {
    font-size: 1.2rem;
}

/* İpuçları Bölümü */
.tips-section {
    margin-top: 3rem;
    text-align: center;
}

.tips-section h3 {
    color: #00ADEF;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 173, 239, 0.1);
}

.tip-icon {
    background: linear-gradient(135deg, #00ADEF, #0097cc);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-text {
    text-align: left;
    flex: 1;
}

.tip-text strong {
    color: #00ADEF;
    display: block;
    margin-bottom: 0.3rem;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .translate-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .input-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .record-btn, .clear-btn, .speak-btn, .copy-btn {
        min-width: auto;
        width: 100%;
    }

    .translate-controls {
        flex-direction: column !important;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .language-selector {
        width: 100%;
        max-width: none;
    }

    .language-select {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.7rem;
    }

    .translate-btn {
        width: 100%;
        max-width: none;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .tips-container {
        grid-template-columns: 1fr;
    }

    .tip-item {
        flex-direction: column;
        text-align: center;
    }

    .tip-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .text-label {
        font-size: 1rem;
    }

    .text-label i {
        font-size: 1.2rem;
    }

    .text-input {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .language-select {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    .translate-btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }
}
