:root {
    --bg-color: #101014;
    --surface-color: rgba(30, 30, 30, 0.5);
    --primary-color: #03dac6;
    --primary-variant-color: #018786;
    --secondary-color: #bb86fc;
    --text-color: #e0e0e0;
    --text-secondary-color: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Poppins', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    overflow: hidden;
    position: relative;
}

/* Hareketli Arka Plan Blob'ları */
body::before, body::after {
    content: '';
    position: absolute;
    width: clamp(300px, 30vw, 500px);
    height: clamp(300px, 30vw, 500px);
    border-radius: 50%;
    filter: blur(180px);
    z-index: -1;
    animation: move 25s infinite linear;
}

body::before {
    background-color: rgba(3, 218, 198, 0.15);
    top: 5vh;
    left: 10vw;
}

body::after {
    background-color: rgba(187, 134, 252, 0.15);
    bottom: 5vh;
    right: 10vw;
    animation-direction: reverse;
    animation-duration: 30s;
}

@keyframes move {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(40px, -60px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-20px, 80px) rotate(180deg) scale(0.9); }
    75% { transform: translate(-60px, -40px) rotate(270deg) scale(1.2); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* Ana Konteyner */
.container {
    width: 100%;
    max-width: 650px;
    background: var(--surface-color);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Animasyonlu Gradyan Başlık */
h1.title-gradient {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 5s linear infinite;
}

@keyframes gradient-animation {
    to { background-position: 200% center; }
}

.subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary-color);
    margin-top: -1rem;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.controls label {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

.select-wrapper { position: relative; }

select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.07);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--text-secondary-color);
    position: absolute;
    right: 1rem; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
select:hover { background-color: rgba(255, 255, 255, 0.1); }
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(3, 218, 198, 0.3);
}

/* Butonlar */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s, box-shadow 0.3s;
    font-family: var(--font-family);
}

button:hover:not(:disabled) {
    background-color: #2cfce1;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 15px rgba(3, 218, 198, 0.4);
}

button:active:not(:disabled) {
    transform: translateY(0) scale(1);
    box-shadow: none;
}

button:disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}
/* GÜNCELLENDİ: Devre dışı bırakılan butonun içindeki SVG yerine .material-symbols-outlined span'ını hedefler */
button:disabled .material-symbols-outlined,
button:disabled svg {
    color: #888;
    stroke: #888;
}

.copy-btn.copied { background-color: var(--primary-variant-color); color: white; }
.copy-btn.copied svg { stroke: white; }

/* Sonuç Kutusu ve Satır Animasyonu */
#result-box {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    word-break: break-all;
    white-space: pre-wrap;
}

.result-line {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.placeholder {
    font-family: var(--font-family);
    text-align: center;
    color: var(--text-secondary-color);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* Özel Scrollbar */
#result-box::-webkit-scrollbar { width: 8px; }
#result-box::-webkit-scrollbar-track { background: transparent; }
#result-box::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
}
#result-box::-webkit-scrollbar-thumb:hover { background-color: var(--primary-variant-color); }

.footer { position: absolute; bottom: 1rem; width: 100%; text-align: center; opacity: 0.5; }

@media (max-width: 768px) {
    body { padding: 1rem; }
    .container { padding: 1.5rem; gap: 1rem; }
    h1.title-gradient { font-size: 1.8rem; }
    .controls { flex-direction: column; gap: 1rem; }
    #result-box { max-height: 250px; }
}