/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    color: #fff;
    background: url(background/);
    cursor: url("course.png"), auto;
}

.img{
    width: 1920px;
}

/* BACKGROUND VIDEO */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* MENU BAR */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
}

.menu-left span {
    margin-left: 8px;
    font-size: 13px;
    user-select: none;
}

.menu-right span {
    font-size: 13px;
    user-select: none;
    margin-left: 10px;
}

.sarj{
    width: 23px;
}

.apple-logo {
    width: 13px;
    object-fit: contain;
    user-select: none;
}

/* DOCK */
.dock {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 6px 14px;
    background: rgba(25, 25, 25, 0.35);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 100;
}

.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* Dock tooltip / label */
.dock-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    color: #fff;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 101;
}

.dock-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Dock divider */
.dock-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 6px;
}

/* Desktop alanı dock ve menü bar altı */
.desktop {
    position: absolute;
    top: 28px; 
    left: 0;
    width: 100%;
    height: calc(100% - 28px);
    z-index: 10; 
    pointer-events: auto;
}

.desktop-item {
    position: absolute;
    width: 80px; height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: grab;
    z-index: 20;
}

.desktop-item:active { cursor: grabbing; z-index: 100; }

.desktop-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.desktop-item::after {
    content: attr(data-title);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50, 50, 50, 0.8);
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: 4px;
    z-index: 100;
}

.desktop-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* PENCERE */
.window {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 600px;
    background: rgba(30,30,30,0.85);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: none;
    z-index: 300;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.window:active {
    transform: scale(1.01);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(40,40,40,0.7);
    backdrop-filter: blur(14px);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: grab;
}

/* macOS butonlar */
.window-controls {
    display: flex;
    gap: 6px;
    margin-right: 10px;
}

.window-controls span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-controls .close { background:#ff5f57; }
.window-controls .minimize { background:#ffbd2e; }
.window-controls .maximize { background:#28c840; }

.window-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* window-content güncelle */
.window-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.window-content img {
    max-width: 100%;
    border-radius: 6px;
}

/* Masaüstü öğeleri başlangıç */
.desktop-item {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.desktop-item.showItem {
    opacity: 1;
    transform: translateY(0);
}

/* Dock başlangıç */
.dock {
    opacity: 0;
    transition: opacity 1s ease;
}

.dock.showDock {
    opacity: 1;
}

/* Menü bar başlangıç */
.menu-bar {
    opacity: 0;
    transition: opacity 1s ease;
}

.menu-bar.showMenu {
    opacity: 1;
}

/* --- MÜZİK PENCERESİ --- */
#musicWindow {
    width: 300px;
    background: rgba(30,30,30,0.85);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: none;
    position: absolute;
    z-index: 200;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
}

#musicWindow .window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(40,40,40,0.7);
    backdrop-filter: blur(14px);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: grab;
}

#musicWindow .window-title {
    font-size: 14px;
    color: #fff;
}

#musicWindow .window-controls span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

#musicWindow .window-controls .close { background:#ff5f57; }
#musicWindow .window-controls .minimize { background:#ffbd2e; }
#musicWindow .window-controls .maximize { background:#28c840; }

#musicWindow .window-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    gap: 8px;
}

.music-info {
    margin-bottom: 8px;
    color: #fff;
    text-align: center;
}

.music-info p {
    margin: 2px 0;
    font-size: 13px;
}

/* Progress bar */
#progressContainer {
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: #0af;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Kontrol butonları */
#controlButtons {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.control-btn {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.control-btn:hover {
    transform: scale(1.1);
}

/* Notlar Penceresi - macOS Notes teması */
#notesWindow {
    width: 600px;
    height: 300px;
    background: #fdfdfd; /* Notlar app beyazı */
    color: #000;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    display: none;
    position: absolute;
    z-index: 200;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

/* Başlık çubuğu */
#notesWindow .window-header {
    background: #f5f5f5;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    cursor: grab;
}

/* Kırmızı, sarı, yeşil butonlar */
#notesWindow .window-controls span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
#notesWindow .close { background: #ff5f57; }
#notesWindow .minimize { background: #ffbd2e; }
#notesWindow .maximize { background: #28c840; }

/* İçerik */
#notesWindow .window-content {
    padding: 12px;
    height: calc(100% - 28px);
    overflow-y: auto;
    background: #fdfdfd;
}

/* Tek not kutusu */
.notes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note {
    background: #fff;
    border-radius: 9px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.note h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.note p {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}


