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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

.baslik {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 20px;
}

.baslik h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #181818;
    border-bottom: 1px solid #282828;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.anasayfa {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.buttons {
    display: flex;
    gap: 12px;
}

.buttons a {
    text-decoration: none;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    color: #121212;
    background-color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.buttons a:hover {
    transform: scale(1.05);
    background-color: #e0e0e0;
}

.buttons a:first-child {
    background-color: transparent;
    color: #a7a7a7;
    font-weight: 600;
}

.buttons a:first-child:hover {
    color: #fff;
    transform: scale(1.05);
    background-color: transparent;
}

nav {
    display: flex;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

nav .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

nav .nav-menu li a {
    text-decoration: none;
    color: #b3b3b3;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    display: block;
    border-radius: 20px;
    transition: all 0.2s ease;
}

nav .nav-menu li a:hover {
    background-color: #2a2a2a;
    color: #fff;
}

.actions-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.upload-link {
    text-decoration: none;
    background-color: #1DB954;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.upload-link:hover {
    background-color: #1ed760;
    transform: scale(1.05);
}

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #282828;
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    transition: background-color 0.3s;
}

.user-info:hover {
    background-color: #3e3e3e;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.username {
    font-size: 14px;
    color: #fff;
    margin-right: 8px;
    font-weight: 600;
}

.dropdown-icon {
    color: #b3b3b3;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-menu.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background-color: #282828;
    border-radius: 8px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 15px 10px;
    z-index: 100;
    width: 220px;
    border: 1px solid #333;
}

.user-menu.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu li {
    padding: 5px;
}

.dropdown-menu li p {
    color: #b3b3b3;
    font-size: 13px;
    margin: 0;
    text-align: center;
}

.dropdown-menu li p:nth-child(2) {
    font-weight: bold;
    color: #fff;
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.dropdown-menu li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: #3e3e3e;
    color: #fff;
}

.arama-cubugu-container {
    margin: 40px 20px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.arama-cubugu-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

.arama-cubugu {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 16px;
    background-color: #242424;
    color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s, background-color 0.3s;
}

.arama-cubugu:focus {
    outline: none;
    border-color: #1DB954;
    background-color: #2a2a2a;
}

.arama-cubugu::placeholder {
    color: #b3b3b3;
}

.arama-ikonu {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arama-ikonu-img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: invert(1);
}

.arama-ikonu:hover .arama-ikonu-img {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness for Header */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }
    nav {
        width: 100%;
        margin-top: 15px;
    }
    .actions-container {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
    }
    .buttons {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .arama-cubugu-container {
        margin: 20px 15px;
    }
}
