/* Çocuk Dostu Sözlük Tasarımı */

/* Genel Sayfa Arka Planı - Canlı Gökkuşağı Gradienti */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-regular-400.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2") format("woff2");
  font-display: swap;
}

body {
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4ecdc4 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    font-family: 'Comic Neue', cursive;
}

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

:root {
    --primary-blue: #4ECDC4;
    --primary-green: #45B649;
    --primary-yellow: #F9CA24;
    --primary-orange: #F0932B;
    --primary-pink: #FF6B9D;
    --light-bg: #F8FFFE;
    --dark-text: #2C3E50;
    --light-text: #7F8C8D;
    --bubble-color: #FFEAA7;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Kelime ek bilgileri */
.word-extra-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 15px;
    border: 1px solid var(--primary-blue);
}

.word-type {
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 10px;
}

.word-category {
    color: var(--primary-orange);
    font-weight: bold;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Başlık */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
	 min-height: 150px; /* Ekle */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    color: var(--primary-blue);
    animation: bounce 2s infinite;
	width: 60px;  /* Ekle */
    height: 60px; /* Ekle */
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin: 0;
}

/* Arama Bölümü */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 20px;
    font-size: 1.2rem;
    border: 4px solid var(--primary-blue);
    border-radius: 50px;
    background: white;
    color: var(--dark-text);
    font-family: 'Comic Neue', cursive;
    outline: none;
    transition: all 0.3s ease;
    min-width: 300px;
}

.search-input:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
    transform: scale(1.02);
}

.search-input::placeholder {
    color: var(--light-text);
}

.search-btn {
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-green), var(--primary-blue));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comic Neue', cursive;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.search-options {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.voice-btn, .language-select {
    padding: 15px 20px;
    border-radius: 50px;
    border: 3px solid var(--primary-orange);
    background: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-btn:hover, .language-select:hover {
    transform: scale(1.1);
    border-color: var(--primary-pink);
}

/* Sonuç Bölümü */
.result-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    animation: slideInUp 0.5s ease;
}

.searched-word {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}

.word-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.meaning-box, .examples-box {
    background: var(--bubble-color);
    padding: 20px;
    border-radius: 20px;
    border: 3px solid var(--primary-yellow);
}

.meaning-box h3, .examples-box h3 {
    color: var(--primary-orange);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.meaning-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--dark-text);
}

.example-list {
    list-style: none;
}

.example-list li {
    background: white;
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
    font-size: 1.1rem;
    color: var(--dark-text);
}

/* Karakterler */
.characters-section {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    gap: 30px;
    flex-wrap: wrap;
	min-height: 250px; /* Ekle */
}

.character {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.character-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-yellow));
    border-radius: 50%;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    animation: characterPulse 3s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-avatar:hover {
    transform: scale(1.1) rotate(5deg);
}

.character-face {
    position: relative;
}

.eyes {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.eye {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.eye::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--dark-text);
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 6px;
    animation: eyeBlink 4s infinite;
}

.mouth {
    width: 40px;
    height: 20px;
    border: 3px solid white;
    border-top: none;
    border-radius: 0 0 40px 40px;
    background: var(--dark-text);
}

.mouth.happy {
    background: transparent;
}

.mouth.surprised {
    border-radius: 50%;
    height: 25px;
    background: var(--dark-text);
}

/* Konuşma Baloncukları */
.speech-bubble {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
    max-width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 3px solid var(--primary-blue);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
}

.speech-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.speech-bubble p {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin: 0;
    font-weight: 600;
}

/* Eğlence Butonları */
.fun-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.fun-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-pink));
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.fun-btn:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.footer p {
    color: var(--dark-text);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--primary-blue);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: var(--primary-blue);
    color: white;
}

/* Arka Plan Animasyonları */
.background-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 50px;
    opacity: 0.8;
    animation: cloudFloat 20s infinite linear;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cloud-1 {
    width: 80px;
    height: 40px;
    top: 10%;
    left: -80px;
    animation-delay: 0s;
}

.cloud-2 {
    width: 60px;
    height: 30px;
    top: 20%;
    left: -60px;
    animation-delay: -10s;
}

.cloud-3 {
    width: 100px;
    height: 50px;
    top: 15%;
    left: -100px;
    animation-delay: -5s;
}

.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 70%, transparent 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starTwinkle 3s infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.star-1 {
    top: 25%;
    right: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 35%;
    right: 20%;
    animation-delay: -1s;
}

.star-3 {
    top: 45%;
    right: 15%;
    animation-delay: -2s;
}

.rainbow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 0, 0, 0.5) 14%,
        rgba(255, 165, 0, 0.5) 28%,
        rgba(255, 255, 0, 0.5) 42%,
        rgba(0, 255, 0, 0.5) 56%,
        rgba(0, 0, 255, 0.5) 70%,
        rgba(75, 0, 130, 0.5) 84%,
        transparent 100%
    );
    border-radius: 50px 50px 0 0;
    opacity: 0.8;
    animation: rainbowWave 4s infinite ease-in-out;
    box-shadow: 0 -5px 20px rgba(255, 255, 255, 0.3);
    filter: blur(1px);
}

/* Yüzen Baloncuklar */
.bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 70%, transparent 100%);
    border-radius: 50%;
    animation: bubbleFloat 8s infinite linear;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.bubble-1 {
    width: 15px;
    height: 15px;
    bottom: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 20px;
    height: 20px;
    bottom: 15%;
    left: 80%;
    animation-delay: -2s;
}

.bubble-3 {
    width: 12px;
    height: 12px;
    bottom: 25%;
    left: 50%;
    animation-delay: -4s;
}

.bubble-4 {
    width: 18px;
    height: 18px;
    bottom: 30%;
    left: 25%;
    animation-delay: -6s;
}

.bubble-5 {
    width: 14px;
    height: 14px;
    bottom: 35%;
    left: 70%;
    animation-delay: -1s;
}

/* Animasyonlar */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes cloudFloat {
    0% {
        left: -100px;
    }
    100% {
        left: 100%;
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
    50% {
        opacity: 0.3;
        transform: scale(1.3) rotate(180deg);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
        transform: translateY(80vh) scale(0.7);
    }
    50% {
        opacity: 0.6;
        transform: translateY(50vh) scale(1);
    }
    80% {
        opacity: 0.4;
        transform: translateY(20vh) scale(0.8);
    }
    100% {
        transform: translateY(-10vh) scale(0.3);
        opacity: 0;
    }
}

@keyframes characterPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes eyeBlink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

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

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input {
        min-width: auto;
    }

    .word-details {
        grid-template-columns: 1fr;
    }

    .characters-section {
        flex-direction: column;
        align-items: center;
    }

    .character {
        margin-bottom: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 10px;
    }

    .search-section {
        padding: 20px;
		min-height: 180px; /* Ekle */
    }

    .result-section {
        padding: 20px;
		 min-height: 200px; /* Ekle */
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 15px;
    }

}

/* Özel Popup Tasarımı */
.custom-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.popup-content {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    position: relative;
	min-height: 80px; /* CLS için eklendi */
}

.custom-popup.error {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.custom-popup.warning {
    border-color: #ffa726;
    background: linear-gradient(135deg, #ffeaa7 0%, #ffd93d 100%);
}

.popup-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.popup-message {
    flex: 1;
    font-weight: 600;
    color: #2d3436;
    font-size: 0.95rem;
    line-height: 1.4;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #636e72;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2d3436;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .custom-popup {
        left: 10px;
        right: 10px;
        top: 10px;
        min-width: auto;
        max-width: none;
    }

    .popup-content {
        min-width: auto;
        padding: 15px;
        gap: 10px;
    }

}

/* Dil Seçimi Label */
.search-options label {
    color: var(--dark-text);
    font-weight: 600;
    margin-right: 10px;
    font-size: 1rem;
}

.fun-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-blue));
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fun-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fun-btn:active {
    transform: scale(0.95);
}

/* Hoparlör butonu - modern ve şık tasarım */
.sound-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.sound-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sound-btn:hover::before {
    left: 100%;
}

.sound-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.sound-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Footer İyileştirmeleri */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.footer p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--light-text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(78, 205, 196, 0.1);
}

/* Çeviri Sonuçları */
.translation-result {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    animation: slideInUp 0.5s ease;
	min-height: 100px; /* CLS için eklendi */
}

.translation-header {
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.translation-header h4 {
    color: #6c63ff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.translation-speaker-btn {
    background: linear-gradient(45deg, #FF6B9D, #C44569);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.translation-speaker-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    background: linear-gradient(45deg, #C44569, #FF6B9D);
}

.translation-speaker-btn:active {
    transform: scale(0.95);
}

.translation-content {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(108, 99, 255, 0.2);
}

.translation-content strong {
    font-size: 1.4rem;
    color: #2d3436;
    font-weight: 700;
}

/* Dil Seçimi İyileştirmeleri */
.language-select {
    padding: 12px 20px;
    border: 3px solid rgba(108, 99, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c63ff;
    min-width: 120px;
}

.language-select:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
    background: white;
}

.language-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.2);
}

/* Son Aranan Kelimeler Bölümü */
.recent-words-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(78, 205, 196, 0.2);
    
    min-height: 150px; /* CLS düşürmek için eklendi */
}


.recent-words-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.recent-words-title i {
    color: var(--primary-orange);
    animation: pulse 2s infinite;
}

.recent-words-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.word-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.word-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
}

/* Karanlık Mod Desteği */
[data-theme="dark"] {
    --primary-blue: #64B5F6;
    --primary-green: #66BB6A;
    --primary-yellow: #FFCA28;
    --primary-orange: #FF7043;
    --primary-pink: #F06292;
    --light-bg: #1E1E1E;
    --dark-text: #FFFFFF;
    --light-text: #B0B0B0;
    --bubble-color: #2A2A2A;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --card-bg: #2D2D2D;
    --input-bg: #3A3A3A;
    --border-color: #404040;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 50%, #1E1E1E 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

[data-theme="dark"] .header,
[data-theme="dark"] .search-section {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .search-input {
    background: var(--input-bg);
    color: var(--dark-text);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-input::placeholder {
    color: var(--light-text);
}

[data-theme="dark"] .result-section {
    background: var(--card-bg);
    color: var(--dark-text);
}

[data-theme="dark"] .meaning-text,
[data-theme="dark"] .example-text {
    color: var(--dark-text);
}

[data-theme="dark"] .footer {
    background: rgba(30, 30, 30, 0.9);
    color: var(--dark-text);
}

[data-theme="dark"] .word-tag {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
}

[data-theme="dark"] .word-tag:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
}

[data-theme="dark"] .speech-bubble {
    background: var(--bubble-color);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .speech-bubble::after {
    border-top-color: var(--bubble-color);
}

[data-theme="dark"] .speech-bubble p {
    color: var(--dark-text);
}

[data-theme="dark"] .eye {
    background: #FFFFFF;
}

[data-theme="dark"] .eye::after {
    background: #000000;
}

[data-theme="dark"] .mouth {
    border-color: #FFFFFF;
    background: transparent;
}

[data-theme="dark"] .mouth.happy {
    background: transparent;
}

[data-theme="dark"] .popup-content {
    background: var(--card-bg);
    color: var(--dark-text);
}

[data-theme="dark"] .popup-message {
    color: var(--dark-text);
}

[data-theme="dark"] .popup-close {
    color: var(--light-text);
}

[data-theme="dark"] .popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
}

[data-theme="dark"] .translation-content {
    background: var(--card-bg);
    color: var(--dark-text);
    border-color: var(--border-color);
}

[data-theme="dark"] .translation-content strong {
    color: var(--dark-text);
}

[data-theme="dark"] .language-select {
    background: var(--input-bg);
    color: var(--dark-text);
    border-color: var(--border-color);
}

[data-theme="dark"] .footer-link {
    color: var(--dark-text);
    background: rgba(100, 181, 246, 0.1);
}

/* Sözlük Sayfaları İçin Genel Stiller */
.idioms-section,
.synonyms-section,
.antonyms-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(78, 205, 196, 0.2);
}

.section-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: white;
}

/* Deyimler İçin Özel Stiller */
.idioms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.idiom-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(78, 205, 196, 0.1);
}

.idiom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.idiom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.idiom-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.idiom-type {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.idiom-type.atasözü {
    background: var(--primary-green);
    color: white;
}

.idiom-type.deyim {
    background: var(--primary-orange);
    color: white;
}

.idiom-content {
    margin-bottom: 15px;
}

.idiom-meaning {
    color: var(--dark-text);
    margin-bottom: 10px;
    line-height: 1.5;
}

.idiom-example {
    color: var(--light-text);
    font-style: italic;
    font-size: 0.9rem;
}

/* Eşanlamlılar İçin Özel Stiller */
.synonyms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.synonym-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(108, 99, 255, 0.1);
}

.synonym-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.synonym-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.main-word {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6c63ff;
}

.part-of-speech {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.part-of-speech.sıfat {
    background: #6c63ff;
    color: white;
}

.part-of-speech.fiil {
    background: #ff6b6b;
    color: white;
}

.part-of-speech.isim {
    background: #26de81;
    color: white;
}

.synonyms-list {
    margin-bottom: 15px;
}

.synonym-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 10px;
    margin: 3px 5px 3px 0;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.synonym-tag:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
}

.synonym-separator {
    margin: 0 5px;
    opacity: 0.5;
}

.synonym-example {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Zıt Anlamlılar İçin Özel Stiller */
.antonyms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.antonym-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 157, 0.1);
}

.antonym-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.antonym-header {
    margin-bottom: 15px;
}

.word-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.main-word {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b9d;
}

.antonym-word {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b9d;
}

.antonym-arrow {
    font-size: 1.2rem;
    color: var(--primary-orange);
}

.word-examples {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.example-item {
    padding: 10px;
    background: rgba(255, 107, 157, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ff6b9d;
}

.example-item strong {
    color: #ff6b9d;
}

/* Rastgele Görüntüleme Kutuları */
.random-idiom-display,
.random-synonym-display,
.random-antonym-display {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-blue);
}

.random-idiom-card,
.random-synonym-card,
.random-antonym-card {
    text-align: center;
}

.random-idiom-card h4,
.random-synonym-card h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.word-pair-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.word-pair-display h4 {
    margin: 0;
    color: #ff6b9d;
}

.examples-display {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

/* Aksiyon Butonları */
.idiom-actions,
.synonym-actions,
.antonym-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-action {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-blue);
    color: white;
}

.btn-action:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

/* Rastgele Buton */
.btn-random {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 30px auto;
    transition: all 0.3s ease;
}

.btn-random:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.no-results p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 10px 0;
}

.no-results p:first-child {
    font-size: 1.2rem;
    color: #495057;
}
.status {
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.pagination-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(78, 205, 196, 0.1);
}

.pagination-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    justify-content: center;
}

.pagination-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--primary-blue);
    color: white;
}

.pagination-btn.first-last,
.pagination-btn.prev-next {
    font-size: 0.9rem;
}

.pagination-btn.first-last {
    padding: 10px 12px;
}

.pagination-btn.number {
    min-width: 45px;
}

/* Responsive Sayfa Navigasyonu */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .pagination-btn.first-last {
        order: 1;
    }

    .pagination-btn.prev-next {
        order: 2;
    }

    .pagination-btn.number {
        order: 3;
    }
}

/* Dil Seçimi için özel karanlık tema desteği */
[data-theme="dark"] .search-options label {
    color: var(--dark-text);
}

/* Tema değiştirme butonu */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-green);
}

/* Mobil uyumluluk için tema butonu */
@media (max-width: 768px) {
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
    }
}
