/* ================= DEFINICIJA NOVE PALETE ================= */
:root {
    --bg-deep: #120520; 
    --bg-gradient: radial-gradient(circle at top left, #2a1245 0%, #120520 80%);
    --glass-bg: rgba(45, 20, 70, 0.35);
    --glass-border: rgba(180, 130, 255, 0.15);
    --text-light: #eaddff; 
    --text-muted: #b39ddb;
    --gold-accent: #D4AF37;
    --metallic-purple: linear-gradient(135deg, #7c4dff 0%, #5e35b1 100%);
    --metallic-shine: linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0));
    --success-soft: #00b894;
    --warning-soft: #fdcb6e;
    --danger-soft: #d63031;
}

body {
    background-color: var(--bg-deep);
    background-image: var(--bg-gradient);
    color: var(--text-light);
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column; /* Da bi footer bio na dnu */
}

/* POZADINSKI UKRASI */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}
body::before {
    top: -100px; left: -100px; width: 400px; height: 400px; background: #9c27b0;
}
body::after {
    bottom: -100px; right: -100px; width: 300px; height: 300px; background: var(--gold-accent); opacity: 0.08;
}

/* HEADER */
.header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(25, 10, 40, 0.7);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo { height: 32px; }

.back-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    padding: 10px 30px;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;      /* Centrira vertikalno */
    justify-content: center;  /* Centrira horizontalno */
    line-height: 1;           /* Uklanja viška prostora koji fontovi ponekad prave */
}
.back-btn:hover { color: var(--text-light); background: rgba(255,255,255,0.1); }

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px 40px 20px;
    flex: 1; /* Gura footer dole */
    width: 100%;
    box-sizing: border-box;
}

h1 {
    font-family: 'Marcellus', serif;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(124, 77, 255, 0.3);
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 45px;
    line-height: 1.6;
}

/* KARTICA TERMINA */
.session-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -10px rgba(42, 18, 69, 0.5);
    position: relative;
    overflow: hidden;
}

.session-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(124, 77, 255, 0.4);
    border-color: rgba(212, 175, 55, 0.3);
}

.session-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--gold-accent), #7c4dff); opacity: 0.8;
}

.session-header {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px;
}

.session-date {
    font-family: 'Marcellus', serif; font-size: 1.4rem; color: var(--text-light);
}

.session-time {
    font-family: 'Manrope', sans-serif; font-weight: 600; color: #fff; font-size: 1rem;
    background: linear-gradient(135deg, #6a4c93, #8d6e63); 
    padding: 6px 16px; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.session-info {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.95rem; color: var(--text-muted); margin-bottom: 25px;
    padding-bottom: 20px; border-bottom: 1px solid rgba(180, 130, 255, 0.1);
}

.spots-warning {
    color: var(--text-light); font-weight: 600; font-size: 0.85rem;
    background: rgba(253, 203, 110, 0.2); padding: 4px 12px;
    border-radius: 50px; color: var(--warning-soft);
}
.spots-full { color: var(--danger-soft); font-weight: 600; }

/* DUGMAD */
.btn-book {
    width: 100%; padding: 18px; border: none; border-radius: 50px;
    font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700;
    cursor: pointer; letter-spacing: 1px; transition: all 0.3s ease;
    text-transform: uppercase; position: relative; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-book.default {
    background: var(--metallic-purple); color: #fff;
    box-shadow: 0 10px 25px -5px rgba(124, 77, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-book.default::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
    background: var(--metallic-shine); border-radius: 50px 50px 0 0; pointer-events: none;
}
.btn-book.default:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(124, 77, 255, 0.7), inset 0 1px 0 rgba(255,255,255,0.3);
    filter: brightness(1.05);
}

.btn-book.confirmed {
    background: rgba(0, 184, 148, 0.1); border: 1px solid var(--success-soft);
    color: var(--success-soft); cursor: default; box-shadow: none;
}

.btn-book.full {
    background: rgba(255,255,255,0.05); color: #777; cursor: not-allowed;
    border: 1px solid transparent; box-shadow: none;
}

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 5, 20, 0.9); display: none; justify-content: center; align-items: center;
    z-index: 2000; backdrop-filter: blur(10px);
}
.modal-box {
    background: linear-gradient(145deg, #1e0e33, #2a1245);
    border: 1px solid rgba(180, 130, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6); padding: 40px 30px;
    border-radius: 30px; text-align: center; max-width: 320px; width: 90%;
    animation: fadeIn 0.3s ease-out;
}
.modal-title { 
    color: var(--text-light); font-family: 'Marcellus', serif; font-size: 1.5rem; margin-bottom: 15px; 
}
.modal-text { color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; font-size: 1rem; }

.btn-modal {
    background: var(--metallic-purple); color: #fff; border: none; padding: 16px 25px;
    border-radius: 50px; font-weight: 700; cursor: pointer; font-family: 'Manrope', sans-serif;
    width: 100%; display: block; margin-bottom: 15px; text-decoration: none; font-size: 0.95rem;
    box-shadow: 0 10px 20px -10px rgba(124, 77, 255, 0.5); transition: 0.3s;
}
.btn-modal:hover { transform: translateY(-2px); box-shadow: 0 15px 25px -10px rgba(124, 77, 255, 0.7); }

.btn-close { 
    background: transparent; border: 2px solid rgba(180, 130, 255, 0.3); color: var(--text-muted); box-shadow: none;
}
.btn-close:hover { background: rgba(180, 130, 255, 0.1); border-color: var(--text-light); color: var(--text-light); }

.loading-spinner { 
    text-align: center; color: var(--text-muted); margin-top: 50px; 
    font-family: 'Marcellus', serif; font-style: italic; font-size: 1.1rem;
}

/* ================= FOOTER STYLES (PILATES THEME) ================= */
.member-footer {
    margin-top: auto; /* Push to bottom */
    padding: 40px 0 30px 0;
    background: rgba(25, 10, 40, 0.9); /* Tamna ljubičasta */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Manrope', sans-serif;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.footer-links {
    display: flex; gap: 25px; flex-wrap: wrap; justify-content: center;
}

.footer-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--gold-accent); }

.footer-bottom {
    display: flex; justify-content: space-between; width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px; margin-top: 10px; font-size: 0.75rem; color: #888;
}

.copyright-text { font-weight: 500; }
.footer-gold { color: var(--gold-accent); font-weight: 600; }
.atelier-credit {
    font-family: 'Marcellus', serif; color: #888; text-decoration: none; transition: color 0.3s;
}
.atelier-highlight { color: var(--gold-accent); font-weight: 700; }

@media (max-width: 768px) {
    .footer-links { gap: 15px; }
    .footer-bottom {
        flex-direction: column; align-items: center; gap: 10px; text-align: center;
    }
}

/* LANGUAGE MENU */
.lang-menu-container {
    position: fixed; bottom: 60px; right: 30px; z-index: 1000;
    display: flex; flex-direction: column-reverse; align-items: center;
}
.lang-current-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background-color: rgba(25, 10, 40, 0.9); border: 2px solid var(--gold-accent);
    color: var(--gold-accent); font-family: 'Manrope', sans-serif;
    font-weight: 800; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center; z-index: 2; transition: 0.3s;
}
.lang-current-btn:hover { background-color: var(--gold-accent); color: #120520; transform: scale(1.05); }
.lang-options {
    display: flex; flex-direction: column-reverse; gap: 10px; margin-bottom: 10px;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease;
}
.lang-menu-container:hover .lang-options { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt-btn {
    width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255,255,255,0.1);
    border: 1px solid var(--gold-accent); color: var(--text-light);
    font-family: 'Manrope', sans-serif; font-size: 0.75rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: 0.2s;
}
.lang-opt-btn:hover { background-color: var(--gold-accent); color: #120520; }

@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }