/**
 * Nail Studio by Vanda - Main Stylesheet
 * Nőies, pasztell rózsaszín és nude színvilág
 */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Új színpaletta - Barack, arany, krém */
    --primary-color: #E6C63B;        /* Arany folt */
    --secondary-color: #F9E4C5;      /* Barack/bézs alap */
    --nude-light: #F5EFE6;           /* Világos bézs/krém */
    --nude-dark: #FFDDE1;            /* Világos rózsaszín */
    --accent-gold: #E6C63B;          /* Arany kiemelés */
    --text-dark: #4a4a4a;
    --text-light: #777;
    --white: #ffffff;
    --shadow: rgba(230, 198, 59, 0.15);
    --shadow-hover: rgba(230, 198, 59, 0.25);
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--nude-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* === Kép védelem - mentés letiltása === */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

img::selection {
    background: transparent;
}

img::-moz-selection {
    background: transparent;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header & Navigation === */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 15px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px;
    box-shadow: 0 4px 15px var(--shadow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === Main Content === */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 3rem 0;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--nude-light) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d4af37 100%);
    color: var(--white);
    border-radius: 25px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
    color: var(--white);
    background: linear-gradient(135deg, #d4af37 0%, var(--accent-gold) 100%);
}

.btn-secondary {
    background: var(--white);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    text-shadow: none;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* === Cards === */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* === Portfolio Grid === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(248, 165, 194, 0.9), transparent);
    padding: 1.5rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* === Forms === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--nude-dark);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* === Booking Calendar === */
.booking-section {
    max-width: 800px;
    margin: 0 auto;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.time-slot {
    padding: 0.8rem;
    text-align: center;
    border: 2px solid var(--nude-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: var(--nude-light);
}

.time-slot.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* === Alerts === */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: var(--nude-light);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

/* === Footer === */
.site-footer {
    background: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 15px var(--shadow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-light);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nude-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--nude-dark);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === Admin Styles === */
.admin-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Mobilon törjön sorba */
}

.admin-nav a {
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

/* Admin hamburger gomb (külön, hogy a publikus ne zavarjon) */
#adminMenuToggle.mobile-menu-toggle span {
    background: #fff;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.admin-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--nude-dark);
}

table th {
    background: var(--nude-light);
    color: var(--text-dark);
    font-weight: 600;
}

table tr:hover {
    background: var(--nude-light);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    margin: 0 0.2rem;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* === Responsive === */
@media (max-width: 768px) {
    /* Admin navigáció mobil nézet */
    #adminMenuToggle.mobile-menu-toggle {display:flex;}
    .admin-nav.collapsed-init {display:none;}
    .admin-nav.active {display:flex;}
    .admin-nav {
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        padding: 0.75rem 0.75rem 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px var(--shadow);
    }
    .admin-nav a {flex: 1 1 100%; background: rgba(255,255,255,0.12);}
    .admin-nav a:hover, .admin-nav a.active {background: rgba(255,255,255,0.25);}
    /* Admin navigáció mobil nézet */
    .admin-nav {
        gap: 0.5rem;
    }
    .admin-nav a {
        flex: 1 1 calc(50% - 0.5rem);
        background: rgba(255,255,255,0.15);
    }
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px var(--shadow);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    /* Admin navigáció nagyon kis kijelzőn egy oszlopban */
    .admin-nav a {
        flex: 1 1 100%;
    }
}
