/* Café Restaurant Cap Spartel - Premium Mobile CSS */
:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #c5a059; /* Gold accent for premium feel */
    --spacing: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Animation */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    text-align: center;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header h1 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
}

.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

/* Home Page */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing);
    text-align: center;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease;
}

.logo-container h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.logo-container p {
    color: var(--accent-color);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.info-snippet {
    font-size: 0.85rem;
    color: #888;
    max-width: 280px;
    margin-bottom: 30px;
    font-style: italic;
}

.menu-buttons {
    width: 100%;
    max-width: 400px;
}

.btn {
    display: block;
    width: 100%;
    padding: 22px;
    margin-bottom: 15px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    font-family: 'Playfair Display', serif;
    transition: var(--transition);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.btn:nth-child(1) { animation-delay: 0.3s; }
.btn:nth-child(2) { animation-delay: 0.6s; }

.btn:active {
    background: var(--accent-color);
    color: black;
}

/* Menu Pages */
.menu-container {
    padding: 10px 0;
}

.menu-item {
    width: 100%;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-item img {
    width: 100%;
    display: block;
    cursor: pointer;
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    z-index: 1001;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 90;
    transition: var(--transition);
}

.whatsapp-btn {
    right: 20px;
    background: #25d366;
}

.scroll-top-btn {
    left: 20px;
    background: var(--accent-color);
    opacity: 0;
    visibility: hidden;
    border: none;
    font-size: 1.2rem;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400&display=swap');
