:root {
    --primary-color: #6750a4;
    --primary-color-light: #7f67be;
    --secondary-color: #cfbaf0;
    --background-gradient:#f4f4f9;
    --surface-color: #ffffff;
    --surface-hover: #f7f5fa;
    --text-color: #1c1b1f;
    --text-secondary-color: #49454f;
    --border-radius: 16px;
    --box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
}

/* Karanlık Mod */
@media (prefers-color-scheme: dark) {
    :root {
        --background-gradient:#2c2c3e ;
        --surface-color: #2c2c3e;
        --surface-hover: #3a3a4f;
        --text-color: #e5e5e5;
        --text-secondary-color: #b5b5b5;
        --primary-color: #bb86fc;
        --primary-color-light: #d0a8ff;
        --secondary-color: #49454f;
        --box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.6);
        h1 {
            color: var(--primary-color-light);
        }
    }
}

/* Genel */
body {
    background: var(--background-gradient);
    color: var(--text-color);
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin: 16px 0 32px;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Arama Çubuğu */
input[type="text"] {
    max-width: 600px;
    padding: 16px;
    margin: 24px auto;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 18px;
    color: var(--text-color);
    background-color: var(--surface-color);
    box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: clamp(200px, 50%, 600px);
    display: block;
}

input[type="text"]::placeholder {
    color: var(--text-secondary-color);
    font-size: 16px;
}

input[type="text"]:focus {
    border-color: var(--primary-color-light);
    box-shadow: 0px 6px 12px rgba(103, 80, 164, 0.3);
}

/* Arama Sonuçları */
#results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
}

.result-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(33.333% - 32px);
    max-width: 300px;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.result-item:hover {
    background-color: var(--surface-hover);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .result-item {
        width: calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .result-item {
        width: 100%;
    }
}

.result-item div {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.result-item div span {
    font-weight: bold;
    color: var(--primary-color);
}

.container {
    text-align: center; 
}
.credit-container {
    margin-bottom: 20px;
}
.credit {
    font-size: 14px;
    color: #666;
}
.credit a {
    text-decoration: none;
    color: #007bff;
}
.credit a:hover {
    text-decoration: underline;
}

/* Yükleme Ekranı */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
    margin-top: 16px;
    font-size: 1.2rem;
    color: var(--text-secondary-color);
}

#loading-screen.active {
    pointer-events: all;
}

#loading-screen .spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
