:root {
    --gold: #d4af37;
    --dark: #121212;
    --card: #1e1e1e;
}

body {
    background-color: var(--dark);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}


/* header stilo */
.site-header {
    background-color: var(--card);
    border-bottom: 1px solid #333;
    padding: 0;
    margin-bottom: 30px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center; 
}


/* logo stilo */
.logo-section {
    line-height: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.active-link {
    color: var(--gold) !important;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: block; 
}

.logo-link h1 {
    color: var(--gold);
    font-size: 2.8rem;
    margin: 0;    
    padding: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 0.85;
    text-shadow: 2px 2px 0px #000;
}

.logo-section p {
    margin: 5px 0 0 0;
    font-size: 0.8rem;
    color: #888;
    line-height: 1;
}

/* menu stilo */
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0; 
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}


.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

/* belepes gomb stilo */
.nav-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}


@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .logo-section { text-align: center; }
    
    .main-nav {
        flex-direction: column; 
        gap: 15px;
    }
}


h1 {
    color: var(--gold);
    font-size: 3rem;
    margin: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
}


p {
    color: #aaa;
    line-height: 1.6;
    margin: 10px 0;
}

h2 {
    margin: 10px 0;
    font-size: 1.5rem;
}


/* About, Contact, Login */
.page-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.page-title {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-content {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* kapcsolat / login */
.form-container {
    background: var(--card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: #121212;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.contact-info h3 { color: var(--gold); margin-top: 0; }
.contact-info p { color: #aaa; margin-bottom: 20px; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; 
    z-index: 99999;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.5s ease-in-out;
}


.transition-overlay.active {
    opacity: 1;
    pointer-events: all; 
}

@keyframes fadeInMove {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-text {
    animation: fadeInMove 1.5s ease-out forwards;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
}

.card {
    background: var(--card);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
    border: 1px solid #222;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-12px); 
    border-color: var(--gold); 
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2); 
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #222;
}

.card-simple-info {
    padding: 20px;
    text-align: center;
}

.card-simple-info h2 {
    color: var(--gold);
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
}


/* modal stilo */
.modal {
    display: none; 
    position: fixed; 
    z-index: 21000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px);
}

.close-modal {
    color: var(--gold);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 20px;
    margin-top: 10px;
    transition: 0.3s;
}

.close-modal:hover {
    color: white;
    text-shadow: 0 0 10px var(--gold);
}
.modal-content {
    background-color: var(--card);
    margin: 5% auto;
    padding: 0; 
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 850px;
    border-radius: 20px;
    overflow: hidden; 
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
}

.modal-details {
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* mobil a modalhoz */
@media (max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-img { height: 300px; }
}

.price {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: bold;
    margin: 15px 0;
}

.btn {
    background: var(--gold);
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
}

.btn:hover {
    background: #b8962e;
}

.btn:active {
    transform: scale(0.95); /* Kicsit összemegy kattintáskor */
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* sorting filter stilo */
.controls-wrapper {
    display: flex;
    justify-content:沟通; /* Széthúzza a két szélre */
    align-items: center;
    max-width: 1200px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
    gap: 30px;
}

.search-section {
    flex: 1; 
    max-width: 400px; /* Megakadályozza, hogy túl széles legyen */
}

.search-section input {
    margin-bottom: 0 !important;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    white-space: nowrap;
}

.sort-section select {
    width: auto !important;
    margin-bottom: 0 !important;
    padding: 8px 30px 8px 15px;
}

@media (max-width: 768px) {
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .search-section { max-width: 100%; }
}

/* 18+ overlay stilo */
#age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 20000; 
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

html {
    overflow-y: scroll; 
}

body.age-restricted {
    padding-right: 0 !important; 
}

#age-gate.fade-out {
    opacity: 0;
    visibility: hidden;
}

body.age-restricted .grid, 
body.age-restricted header, 
body.age-restricted .sorting-container {
    filter: blur(10px);
    pointer-events: none;
}

body.age-restricted footer {
    filter: blur(10px);
    pointer-events: none;
    /* lockolja a hatteret */
}

.age-gate-content {
    position: relative;
    z-index: 20001; /* sotet reteg folott legyen */
    background: #1e1e1e;
    padding: 50px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    text-align: center;
    pointer-events: auto;
}

.age-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    margin: 10px;
    outline: none;
}

.confirm {
    background-color: var(--gold);
    color: #000;
    border: 2px solid var(--gold);
}

.confirm:hover {
    background-color: transparent;
    color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.deny {
    background-color: transparent;
    color: #888;
    border: 2px solid #444;
}

.deny:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.age-gate-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* feldobogomb stilo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out; 
}

.back-to-top:hover {
    background-color: #fff; 
    transform: translateY(0) scale(1.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.hiding {
    opacity: 0 !important;     
    visibility: hidden !important; 
    transform: translateY(-50px) scale(0.5);
    pointer-events: none;
}