* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #0f2936; /* Biraz daha açık lacivert */
}

/* Yıldızlı Arka Plan Animasyonu */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.stars {
    background: #0c0c2b url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    z-index: -2;
}

.twinkling {
    background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    z-index: -1;
    animation: move-twinkle 200s linear infinite;
}

@keyframes move-twinkle {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    padding: 20px;
    margin-top: 7.5rem;
}

.dream-box {
    background: rgba(24, 57, 73, 0.7); /* Daha açık ve ferah */
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 
        0 8px 32px rgba(127, 219, 218, 0.1),
        0 0 0 1px rgba(127, 219, 218, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dream-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(95, 158, 160, 0.2),
                0 0 0 1px rgba(95, 158, 160, 0.1);
}

.moon-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--text-primary), 
                     0 0 10px var(--text-primary), 
                     0 0 15px var(--primary-color);
    }
    to {
        text-shadow: 0 0 10px var(--text-primary), 
                     0 0 20px var(--text-primary), 
                     0 0 30px var(--primary-color);
    }
}

h1 {
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
    font-size: 5rem;
    color: var(--header-text);
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(74, 141, 143, 0.2),
                 0 0 20px rgba(74, 141, 143, 0.1),
                 0 0 30px rgba(74, 141, 143, 0.05);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px rgba(74, 141, 143, 0.2),
                     0 0 20px rgba(74, 141, 143, 0.1),
                     0 0 30px rgba(74, 141, 143, 0.05);
    }
    to {
        text-shadow: 0 0 20px rgba(74, 141, 143, 0.3),
                     0 0 30px rgba(74, 141, 143, 0.2),
                     0 0 40px rgba(74, 141, 143, 0.1);
    }
}

.subtitle {
    font-family: 'Indie Flower', cursive;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-section {
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    height: 180px;
    padding: 1.5rem;
    border: none;
    border-radius: 15px;
    background: rgba(127, 219, 218, 0.05);
    color: #fff;
    font-family: 'Indie Flower', cursive;
    font-size: 1.3rem;
    resize: none;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 25px rgba(72, 191, 227, 0.2);
    background: rgba(127, 219, 218, 0.08);
    transform: translateY(-2px);
}

button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--button-gradient-1), var(--button-gradient-2));
    color: #fff;
    font-family: 'Amatic SC', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px var(--shadow-color);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(95, 158, 160, 0.3);
    background: linear-gradient(135deg, var(--hover-gradient-1), var(--hover-gradient-2));
}

.result-section {
    background: rgba(24, 57, 73, 0.5); /* Ana kutuyla uyumlu ama daha transparan */
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(127, 219, 218, 0.1);
}

.result-section h2 {
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #7fdbda; /* Parlak turkuaz */
    text-shadow: 0 0 15px rgba(127, 219, 218, 0.3),
                 0 0 25px rgba(127, 219, 218, 0.2);
}

.interpretation-container {
    position: relative;
    background: rgba(127, 219, 218, 0.03); /* Çok hafif turkuaz tonu */
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#interpretation {
    font-family: 'Indie Flower', cursive;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
    letter-spacing: 0.3px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 60px;
}

.loading-container {
    text-align: center;
    margin: 2rem auto;
}

.loading-text {
    font-family: 'Amatic SC', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.loading-text span {
    display: inline-block;
    animation: wave 1.5s infinite;
    animation-delay: calc(.1s * var(--i));
}

.loading-text span:nth-child(1) { --i: 1; }
.loading-text span:nth-child(2) { --i: 2; }
.loading-text span:nth-child(3) { --i: 3; }
.loading-text span:nth-child(4) { --i: 4; }
.loading-text span:nth-child(5) { --i: 5; }
.loading-text span:nth-child(6) { --i: 6; }
.loading-text span:nth-child(7) { --i: 7; }
.loading-text span:nth-child(8) { --i: 8; }
.loading-text span:nth-child(9) { --i: 9; }
.loading-text span:nth-child(10) { --i: 10; }
.loading-text span:nth-child(11) { --i: 11; }
.loading-text span:nth-child(12) { --i: 12; }
.loading-text span:nth-child(13) { --i: 13; }
.loading-text span:nth-child(14) { --i: 14; }
.loading-text span:nth-child(15) { --i: 15; }
.loading-text span:nth-child(16) { --i: 16; }
.loading-text span:nth-child(17) { --i: 17; }
.loading-text span:nth-child(18) { --i: 18; }
.loading-text span:nth-child(19) { --i: 19; }
.loading-text span:nth-child(20) { --i: 20; }
.loading-text span:nth-child(21) { --i: 21; }
.loading-text span:nth-child(22) { --i: 22; }
.loading-text span:nth-child(23) { --i: 23; }

@keyframes wave {
    0%, 40%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-10px);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(95, 158, 160, 0.1);
    border-top: 3px solid var(--header-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 1rem auto;
        margin-top: 6.5rem;
    }
    
    .dream-box {
        padding: 2rem;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    textarea {
        height: 150px;
    }

    .header-container {
        padding: 0 1rem;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .current-lang {
        display: none;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .result-section h2 {
        font-size: 3rem;
    }

    button {
        font-size: 1.3rem;
    }
}

/* Header ve dil seçici için yeni stiller */
.main-header {
    background: rgba(15, 41, 54, 0.85); /* Daha açık ve daha transparan */
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(127, 219, 218, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 8px 15px;
    background: rgba(127, 219, 218, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(127, 219, 218, 0.1);
    transition: all 0.3s ease;
}

.logo:hover {
    background: rgba(127, 219, 218, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 219, 218, 0.1);
}

.logo i {
    font-size: 2.4rem;
    color: #7fdbda;
    animation: moonGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 8px rgba(127, 219, 218, 0.3));
}

.logo-text {
    font-family: 'Amatic SC', cursive;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7fdbda, #5f9ea0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: logoReveal 1.5s ease-out forwards;
    letter-spacing: 3px;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(127, 219, 218, 0) 0%,
        rgba(127, 219, 218, 0.5) 50%,
        rgba(127, 219, 218, 0) 100%);
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes moonGlow {
    from {
        text-shadow: 0 0 10px rgba(127, 219, 218, 0.2),
                     0 0 20px rgba(127, 219, 218, 0.1);
        transform: scale(1);
    }
    to {
        text-shadow: 0 0 15px rgba(127, 219, 218, 0.4),
                     0 0 30px rgba(127, 219, 218, 0.2);
        transform: scale(1.1);
    }
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        letter-spacing: 15px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 2px;
    }
}

.language-selector {
    position: relative;
    z-index: 1100;
}

.lang-btn {
    background: rgba(95, 158, 160, 0.1);
    border: 1px solid rgba(95, 158, 160, 0.2);
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    color: var(--header-text);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Amatic SC', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lang-btn i {
    font-size: 1.1rem;
}

.lang-btn:hover {
    background: rgba(95, 158, 160, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(95, 158, 160, 0.1);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(24, 57, 73, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(127, 219, 218, 0.1);
    border-radius: 12px;
    padding: 0.8rem;
    width: 220px;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform-origin: top right;
    animation: dropdownShow 0.3s ease;
}

@keyframes dropdownShow {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.language-selector.active .language-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-family: 'Indie Flower', cursive;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.lang-option:hover {
    background: rgba(95, 158, 160, 0.1);
    color: var(--header-text);
}

.lang-option.active {
    background: rgba(95, 158, 160, 0.15);
    color: var(--header-text);
    font-weight: 500;
}

.lang-option img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* RTL dil desteği */
[lang="ar"] {
    direction: rtl;
}

[lang="ar"] .language-dropdown {
    left: 0;
    right: auto;
}

/* Renk değişkenlerini güncelleyelim */
:root {
    /* Header renkleri */
    --header-primary: #5f9ea0;      /* Header ana rengi - Deniz mavisi */
    --header-text: #b5d1d2;         /* Header metin rengi - Soluk mavi */
    
    /* Ana içerik renkleri */
    --primary-color: #4a8d8f;       /* Ana başlık rengi - Koyu turkuaz */
    --accent-color: #407d80;        /* Vurgu rengi - Orta turkuaz */
    --text-primary: #c5e0e2;        /* Ana metin rengi - Soluk turkuaz */
    --text-secondary: #a3c7c9;      /* İkincil metin rengi - Açık turkuaz */
    
    /* Efekt renkleri */
    --glow-color: #386d6f;          /* Parlama efekti - Koyu turkuaz */
    --button-gradient-1: #5f9ea0;   /* Buton gradyanı başlangıç */
    --button-gradient-2: #4a8d8f;   /* Buton gradyanı bitiş */
    --hover-gradient-1: #6aacae;    /* Hover gradyanı başlangıç */
    --hover-gradient-2: #5f9ea0;    /* Hover gradyanı bitiş */
    --shadow-color: rgba(95, 158, 160, 0.15); /* Gölge rengi */
}

/* Yorum container'ı ve kopyalama butonu stillerini güncelle */
.copy-button {
    position: absolute;
    bottom: -45px;
    background: rgba(127, 219, 218, 0.1);
    border: 1px solid rgba(127, 219, 218, 0.2);
    color: #7fdbda;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: rgba(127, 219, 218, 0.2);
    transform: translateY(-2px);
}

.copy-button .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 25, 32, 0.9);
    color: #7fdbda;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-bottom: 5px;
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
}

.copy-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.copy-button.copied {
    background: rgba(127, 219, 218, 0.3);
}

.copy-button.copied .tooltip {
    content: 'Kopyalandı!';
}

/* Reklam container stili */
.ad-container {
    max-width: 900px;
    margin: 1rem auto;
    padding: 15px;
    text-align: center;
    min-height: 90px;
    background: rgba(24, 57, 73, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(127, 219, 218, 0.1);
}

/* Mobil için responsive ayarlar */
@media (max-width: 768px) {
    .ad-container {
        margin: 0.5rem auto;
        padding: 10px;
    }
}

/* Footer stili */
.footer {
    margin: 1rem auto 1rem;
    padding: 1.5rem 0;
    background: rgba(24, 57, 73, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(127, 219, 218, 0.1);
    border-radius: 15px;
    max-width: 900px;
}

.footer-content {
    text-align: center;
    color: #7fdbda;
    font-family: 'Amatic SC', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(127, 219, 218, 0.2);
    text-transform: lowercase; /* Tüm metni küçük harfe çevir */
}

.footer-content p {
    margin: 5px 0;
}

.website {
    color: #5f9ea0;
    font-family: 'Amatic SC', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 8px;
    text-shadow: 0 0 10px rgba(127, 219, 218, 0.2);
    text-transform: lowercase; /* Domain adını küçük harfe çevir */
}

/* Responsive ayarlar */
@media (max-width: 768px) {
    .footer-content {
        font-size: 1.3rem;
        padding: 0 15px;
    }

    .website {
        font-size: 1.1rem;
    }
} 