/* Global Styles */
:root {
    --bg-dark: #0a1929;
    --primary-color: #00c8ff;
    --secondary-color: #0055ff;
    --text-primary: #ffffff;
    --text-secondary: #b3e5fc;
    --card-bg: rgba(13, 31, 45, 0.5);
    --hover-color: #00e5ff;
    --border-color: rgba(0, 200, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: url('unnamed.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 80px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    opacity: 0.8;
    z-index: -1;
}

/* Main Page Styles */
.container {
    max-width: 800px;
    padding: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 200, 255, 0.1);
    margin: 20px auto;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease-out;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
    font-weight: bold;
    letter-spacing: 2px;
}

.authors {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    color: var(--text-primary);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.5);
}

.button::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: 0.5s;
}

.button:hover::before {
    left: 100%;
}

/* Dictionary Page Styles */
.navbar {
    background: var(--card-bg);
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-logo {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

body {
    padding-top: 80px; /* Navbar yüksekliği + padding için ek alan */
}

/* Letter Bar */
.letter-bar {
    background: var(--card-bg);
    padding: 1.2rem;
    margin: 1.5rem auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 200, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    width: 95%;
}

.letter-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    background: rgba(0, 200, 255, 0.1);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    min-width: 2.5rem;
    border: 1px solid var(--border-color);
}

.letter-btn:hover {
    background: rgba(0, 200, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.letter-btn.active {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
}

/* Filter Bar */
.filter-bar {
    background: var(--card-bg);
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 200, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    width: 95%;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-group label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
}

select, input {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(13, 31, 45, 0.9);
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300c8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

select option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
}

select:hover, input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.2);
}

select:focus, input:focus {
    outline: none;
    border-color: var(--hover-color);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

/* Letter Sections */
.letter-section {
    background: var(--card-bg);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 200, 255, 0.1);
    border: 1px solid var(--border-color);
    max-width: 1200px;
    width: 95%;
}

.letter-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Terms */
.terms-list {
    display: grid;
    gap: 1.5rem;
}

.term-container {
    background: rgba(13, 31, 45, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.term-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 200, 255, 0.2);
    border-color: var(--primary-color);
}

.term-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.term-definition {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    select, input {
        width: 100%;
    }

    .terms-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .terms-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .terms-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .term-card {
        padding: 1.5rem;
    }

    .letter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .filter-bar {
        padding: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}