/* === SÖTÉT TÉMA - TELJES CSS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: transparent;
}

/* Fejléc */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
}

/* Navigáció - FRISSÍTVE */
nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Bejelentkezési/regisztrációs rész */
.login-section {
    background-color: #1a1a1a;
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

.login-section h2 {
    margin-bottom: 25px;
    color: #5d9bff;
    text-align: center;
}

/* Űrlap elemek */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.2);
}

/* Gombok */
.btn {
    display: inline-block;
    background: linear-gradient(to right, #1a1a2e , #16213e );
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(to right, #1a1a2e , #16213e);
    width: 100%;
}

.btn-logout {
    background: none;
    color: white;
    text-decoration: underline;
    padding: 0;
    font-size: 0.9rem;
}

.btn-delete {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: linear-gradient(to right, #ff4b2b, #ff416c);
}

/* Fő tartalom */
main {
    padding: 40px 0;
    background-color: transparent;
}

/* Két feltöltési szakasz elrendezése - ÚJ */
.upload-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1100px) {
    .upload-sections {
        grid-template-columns: 1fr;
    }
}

.upload-section {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.upload-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
}

/* Külön színek a két galériához - ÚJ */
#upload-felho1 h2 {
    color: #8c8c91;
    border-bottom-color: #16213e;
}

#upload-felho2 h2 {
    color: #8c8c91;
    border-bottom-color: #16213e;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed #6a11cb;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    background-color: #2d2d2d;
}

.drop-zone:hover, .drop-zone.dragover {
    background-color: #3a3a3a;
}

#upload-felho1 .drop-zone {
    border-color: #16213e;
}

#upload-felho2 .drop-zone {
    border-color: #1a1a2e;
}

.drop-zone i {
    font-size: 3rem;
    color: #76727a;
    margin-bottom: 15px;
}

#upload-felho1 .drop-zone i {
    color: #16213e;
}

#upload-felho2 .drop-zone i {
    color: #1a1a2e;
}

.drop-zone p {
    color: #aaa;
}

.file-input {
    display: none;
}

.upload-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #999;
    font-size: 0.9rem;
}

/* Két galéria elrendezése - ÚJ */
.gallery-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.gallery-section {
    padding-bottom: 30px;
    border-bottom: 2px solid #333;
}

.gallery-section:last-child {
    border-bottom: none;
}

.gallery-section h2 {
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
}

#gallery-felho1 h2 {
    color: #1a1a2e;
    border-bottom-color: #16213e;
}

#gallery-felho2 h2 {
    color: #1a1a2e;
    border-bottom-color: #16213e;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.photo-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    border: 1px solid #333;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.photo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-info {
    padding: 15px;
    background-color: #1a1a1a;
}

.photo-title {
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e0e0e0;
}

.photo-date {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.days-counter {
    display: inline-block;
    background-color: #253a5f;
    color: #8bb4ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-right: 10px;
}

/* Galéria badge - ÚJ */
.gallery-badge {
    display: inline-block;
    background-color: #16213e;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-badge-2 {
    background-color: #16213e;
}

.photo-actions {
    margin-top: 10px;
}

.delete-form {
    display: inline-block;
}

/* Üres galéria */
.empty-gallery {
    text-align: center;
    padding: 60px 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #999;
    border: 1px solid #333;
}

/* Alert üzenetek */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-success {
    background-color: #1e3a2e;
    color: #90ee90;
    border: 1px solid #2e5c3e;
}

.alert-error {
    background-color: #3a1e1e;
    color: #ff7f7f;
    border: 1px solid #5c2e2e;
}

/* User info */
.user-info {
    color: white;
    font-weight: 600;
}

/* Lábléc */
footer {
    background-color: #151515;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #333;
}

footer a {
    color: #5d9bff;
    text-decoration: none;
}

footer a:hover {
    color: #8bb4ff;
    text-decoration: underline;
}

/* Reszponzív design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .upload-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .login-section, .upload-section {
        padding: 20px;
    }
    
    .upload-info {
        flex-direction: column;
        gap: 5px;
    }
}

/* Admin link stílusok */
.admin-link {
    background: #b37400;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-link:hover {
    background: #cc8500;
    transform: translateY(-1px);
}

/* Admin badge a főoldalon */
.admin-badge-main {
    background: #b37400;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 10px;
    vertical-align: middle;
}

/* Sötét téma extra finomítások */
input::placeholder {
    color: #888;
}

select {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 5px;
}

textarea {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 1rem;
}

/* Scrollbar sötét témához */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}