:root {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color-scheme: dark;
    --bg: #0b0b0d;
    --card: #151518;
    --text: #eef1f8;
    --muted: #8c93a5;
    --primary: #37f9c5;
    --danger: #ff6b6b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.site-header,
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5vw;
    background: rgba(0, 0, 0, 0.7);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--text);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    font-family: 'Brush Script MT', cursive;
}

nav a {
    color: var(--text);
    margin-left: 1rem;
    text-decoration: none;
    font-weight: 600;
}

nav a.danger {
    color: var(--danger);
}

.container {
    padding: 2rem 5vw;
    max-width: 960px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin: 4rem auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.features article,
.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.card form,
form.card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

input,
button {
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    font-size: 1rem;
}

input {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.btn.primary {
    background: linear-gradient(135deg, #37f9c5, #2c82ff);
    color: #000;
    font-weight: 600;
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.3);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.alert.hide {
    opacity: 0;
    transform: translateY(-8px);
}

.alert.success {
    background: rgba(55, 249, 197, 0.15);
    color: #37f9c5;
}

.alert.danger {
    background: rgba(255, 107, 107, 0.15);
    color: #ffaaa6;
}

.muted {
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 640px) {

    .site-header,
    .site-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav a {
        margin: 0 0.5rem;
    }
}

/* File Grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.file-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: context-menu;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
}

.file-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(55, 249, 197, 0.3);
}

.file-icon {
    font-size: 3rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.file-meta {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Context Menu */
#context-menu {
    position: absolute;
    background: #1a1b1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.1s ease-out;
}

#context-menu.visible {
    display: block;
}

.context-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.context-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.context-item.danger:hover {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.1);
}

.context-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.4rem 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Drive Layout */
.drive-container {
    display: flex;
    min-height: calc(100vh - 80px);
    /* Header hariç */
    gap: 0;
}

.drive-sidebar {
    width: 260px;
    padding: 1.5rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.drive-content {
    flex: 1;
    padding: 1.5rem 2rem;
    background: var(--bg);
}

/* Sidebar Elements */
.new-btn {
    background: var(--text);
    color: var(--bg);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    font-size: 1rem;
    width: fit-content;
}

.new-btn:hover {
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
    background: #fff;
}

.drive-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0 50px 50px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(55, 249, 197, 0.1);
}

/* Toolbar */
.drive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drive-toolbar h2 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 500;
}

.sort-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
}

.sort-select:hover {
    border-color: var(--text);
}

.sort-select option {
    background: var(--card);
    color: var(--text);
}

@media (max-width: 768px) {
    .drive-container {
        flex-direction: column;
    }

    .drive-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1rem;
    }

    .new-btn {
        width: 100%;
        justify-content: center;
    }

    .drive-content {
        padding: 1rem;
    }
}