/* ===========================================
   GENEL AYARLAR
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
}

/* ===========================================
   HAMBURGER MENÃœ - EN YÃœKSEK Z-INDEX
   =========================================== */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001; /* En Ã¼stte */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================================
   SIDEBAR - YÃœKSEK Z-INDEX
   =========================================== */
.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 80px 30px 30px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000; /* Popup'tan yÃ¼ksek */
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar.active {
    right: 0;
}

.sidebar a.menu-link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.sidebar a.menu-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.contact-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info a {
    color: #4fc3f7;
    text-decoration: none;
    word-break: break-all;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ===========================================
   POPUP OVERLAY - ORTA Z-INDEX (MenÃ¼den dÃ¼ÅŸÃ¼k)
   =========================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 998; /* Sidebar'dan DÃœÅÃœK */
    padding: 20px;
    pointer-events: none; /* Overlay tÄ±klanamaz - menÃ¼ler aktif kalÄ±r */
}

.popup-overlay.active {
    display: flex;
}

/* Card tÄ±klanabilir */
.popup-overlay .card {
    pointer-events: auto;
}

/* ===========================================
   POPUP CARD
   =========================================== */
.card {
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 59, 48, 0.8);
    transform: rotate(90deg);
}

.title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 600;
}

.content {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

/* ===========================================
   BLOG POSTLERÄ°
   =========================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-emoji {
    font-size: 32px;
    margin-bottom: 15px;
}

.post-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #fff;
}

.post-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.post-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #81d4fa;
    transform: translateX(5px);
}

/* Blog Navigasyon */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow {
    font-size: 18px;
}

.post-full-content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.8;
    font-size: 15px;
}

/* ===========================================
   SAYFALAMA
   =========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-btn.active {
    background: #4fc3f7;
    border-color: #4fc3f7;
}

/* ===========================================
   PROJELER
   =========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.project-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-item h4 {
    padding: 15px 20px 10px;
    font-size: 18px;
    color: #fff;
}

.project-item p {
    padding: 0 20px 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.project-item a {
    display: block;
    padding: 12px 20px;
    background: rgba(79, 195, 247, 0.1);
    color: #4fc3f7;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-item a:hover {
    background: rgba(79, 195, 247, 0.2);
}

/* ===========================================
   Ä°LETÄ°ÅÄ°M FORMU
   =========================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4fc3f7;
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.4);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

.form-message.info {
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid rgba(79, 195, 247, 0.5);
    color: #4fc3f7;
}

/* ===========================================
   MÃœZÄ°K Ã‡ALAR
   =========================================== */
.music-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.music-player.minimized {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}

.music-player.minimized .player-content {
    display: none;
}

.minimize-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.music-player.minimized .minimize-btn {
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    border-radius: 50%;
    font-size: 24px;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.player-header {
    margin-bottom: 15px;
}

.player-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.video-container {
    display: none;
}

#ytPlayer {
    display: none;
}

.song-info {
    margin-bottom: 15px;
    text-align: center;
}

.song-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.song-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.control-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.play-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);
    font-size: 22px;
}

.playlist-toggle {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.playlist-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 15px;
}

.playlist.active {
    max-height: 300px;
    overflow-y: auto;
}

.playlist-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.playlist-item.active {
    background: rgba(79, 195, 247, 0.2);
    border-left: 3px solid #4fc3f7;
}

.playlist-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.playlist-item-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================================
   MOBÄ°L RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    /* Hamburger daha bÃ¼yÃ¼k ve dokunmatik uyumlu */
    .hamburger {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }

    /* Sidebar tam geniÅŸlik */
    .sidebar {
        width: 100%;
        right: -100%;
        padding: 70px 20px 20px;
    }

    .sidebar.active {
        right: 0;
    }

    /* Popup tam ekran benzeri */
    .popup-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 80px; /* Hamburger menÃ¼ye yer bÄ±rak */
    }

    .card {
        max-height: calc(100vh - 90px);
        padding: 25px 20px;
        border-radius: 15px;
    }

    .title {
        font-size: 22px;
        margin-bottom: 20px;
        padding-right: 40px; /* Close button iÃ§in */
    }

    .close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    /* Form iki sÃ¼tundan tek sÃ¼tuna */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Projeler tek sÃ¼tun */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Blog navigasyon dÃ¼ÄŸmeleri kÃ¼Ã§Ã¼k */
    .post-navigation {
       flex-direction: row;
       gap: 10px;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    /* MÃ¼zik Ã§alar mobilde daha kÃ¼Ã§Ã¼k */
    .music-player {
        width: calc(100% - 40px);
        left: 20px;
        bottom: 20px;
    }

    .music-player.minimized {
        width: 55px;
        height: 55px;
        left: 20px;
        bottom: 20px;
    }

    #ytPlayer {
        height: 180px;
    }

    /* Sayfalama kÃ¼Ã§Ã¼k butonlar */
    .pagination {
        gap: 5px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px 15px;
    }

    .title {
        font-size: 20px;
    }

    .post-item {
        padding: 20px;
    }

    .post-item h3 {
        font-size: 18px;
    }

    .music-player {
        width: calc(100% - 30px);
        left: 15px;
        bottom: 15px;
    }

    .hamburger {
        top: 10px;
        right: 10px;
    }
@media (max-width: 480px) {
    .card {
        padding: 20px 15px;
        padding-bottom: 80px; /* Bu satırı ekle */
    }
    
    .pagination {
        margin-bottom: 40px; /* Bu satırı ekle */
        padding-bottom: 20px; /* Bu satırı ekle */
    }
}
}

/* ===========================================
   SCROLLBAR STÄ°LÄ°
   =========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);


/* Mobil Sayfalama Düzeltmesi */
@media (max-width: 768px) {
    .posts-list {
        margin-bottom: 80px;
    }
    
    .pagination {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(20, 20, 30, 0.98);
        padding: 15px 10px;
        margin: 0;
        z-index: 997;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    }
}
}