* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fefefe;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    background: #f4f4f4;
}

/* Üst kısım */
header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

/* Menü */
nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #0077cc;
}

/* Nav menü (butonlu görünüm varsa) */
.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
}
.nav-menu li a {
    text-decoration: none;
    background: #007bff;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
}
.nav-menu li a:hover {
    background: #0056b3;
}

/* Ana içerik */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 1rem; /* Burayı 3rem’den 1rem’e düşürdük */
}

main h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

main p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #222;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #444;
}

/* Alt kısım */
footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #e0e0e0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    text-align: left;
}
.modal-content input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.modal-content button {
    width: 100%;
    padding: 0.6rem;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.modal-content button:hover {
    background-color: #444;
}

/* Üst menü (sub-nav) */
.sub-nav {
    margin: 10px 0 5px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.sub-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.sub-nav a:hover {
    color: #0077cc;
}

/* Menü ile albümler arasındaki boşluğu sıfırlıyoruz */
section:first-of-type {
    margin-top: 10px;
}

/* Albüm grid ve kart stilleri */
.album-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}
.album-tree {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    padding-left: 0;
}
.album-tree > li {
    margin: 15px;
}
.album-card {
    width: 180px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.album-name {
    margin-top: 10px;
    font-weight: bold;
}
.album-children {
    margin-top: 10px;
    padding: 10px;
    border-top: 1px dashed #ccc;
}

.upload-btn {
    display: inline-block;
    margin-top: 8px;
    background-color: #28a745;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
}
.upload-btn:hover {
    background-color: #1e7e34;
}

/* Workshop bölümü */
.workshop-section {
    text-align: center;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.workshop-section h1 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin: 0 auto 30px auto;
    border-bottom: 2px dashed #007bff;
    padding-bottom: 10px;
    width: fit-content;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    header nav {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .sub-nav {
        flex-direction: column;
        gap: 10px;
    }
}
