/* Home Cards */
.qhome-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    flex: 1;
}

.qhome-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2rem;
    border-top: 1px solid var(--border);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.qhome-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.qhome-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.2; /* Reduce opacity to show the text behind/around if needed, or just hide it */
    transition: transform 0.7s cubic-bezier(0.22,1,0.36,1), filter 0.5s;
}

.qhome-card-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    letter-spacing: -0.02em;
}

.qhome-card:hover .qhome-card-img { transform: scale(1.05); }

.qhome-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 2;
}

.qhome-card-label-text { text-align: left; }

.qhome-card-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    transition: color 0.3s;
}

.qhome-card:hover .qhome-card-name { color: var(--gold-500); }

.qhome-card-arrow {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}

.qhome-card:hover .qhome-card-arrow {
    transform: scale(1.1) rotate(-45deg);
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--background);
}

/* Responsive */
@media (max-width:1023px) {
    .qhome-cards { gap: 1rem; }
    .qhome-card { min-height: 180px; border-radius: 1.5rem; }
}

@media (max-width:479px) {
    .qhome-card { min-height: 150px; }
    .qhome-card-label { padding: 1.5rem 1.25rem 1.25rem; }
    .qhome-card-name { font-size: 1.25rem; }
    .qhome-card-arrow { width: 2.5rem; height: 2.5rem; }
}

/* Page Content */
.page-content,
.page-content.page-content-reservations {
    width: 100%;
    margin: 0;
    padding: 2.5rem 2rem 3rem;
    background: var(--card);
    border-radius: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    height: 100%;
}

.page-content.page-content-reservations .reservation-container {
    width: 100%;
    display: flex;
    flex: 1;
    min-height: 0;
    margin-top: 0;
}

.page-content.page-content-reservations {
    overflow: hidden;
    padding: 0.5rem 1.5rem 1.25rem;
}

@media (max-width:768px) {
    .page-content,
    .page-content.page-content-reservations {
        padding: 2rem 1.25rem 2rem;
    }
}

/* Page Header */
.page-header { margin-bottom: 0; }

.page-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem,3.4vw,2.6rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin: 0;
    color: var(--gold-500);
}

.page-desc {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--muted-foreground);
    font-size: 1.08rem;
    line-height: 1.6;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    max-width: none;
}

.section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    color: var(--gold-500);
    margin-bottom: 0.5rem;
}

/* Menu */
.menu-hero-banner {
    position: relative;
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
    max-height: 280px;
}

.menu-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem 2rem;
}

.menu-hero-text {
    font-size: 1.75rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

.about-hero-inline {
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
    max-height: 350px;
}

.about-hero-inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-categories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.menu-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.menu-category-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-500);
}

.menu-items-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: var(--card);
    border-radius: 0.5rem;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
    border: 1px solid transparent;
}

.menu-item:hover {
    border-color: rgba(212,168,67,0.15);
    background: rgba(255,255,255,0.03);
    transform: translateX(4px);
}

.menu-item-info { flex: 1; }

.menu-item-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}

.menu-item-name {
    font-family: var(--font-subheading);
    font-weight: 400;
    font-size: 1.02rem;
}

.menu-item-desc {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--muted-foreground);
    font-size: 0.88rem;
    line-height: 1.45;
}

.menu-item-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold-500);
    white-space: nowrap;
    margin-left: 1rem;
    font-weight: 700;
}

/* Tags */
.tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.tag-chef { background: rgba(212,168,67,0.15); color: var(--gold-500); }
.tag-spicy { background: rgba(239,68,68,0.15); color: var(--red-500); }
.tag-signature { background: rgba(34,197,94,0.15); color: var(--green-500); }
.tag-must-try { background: rgba(59,130,246,0.15); color: var(--blue-500); }

/* Menu CTA */
.menu-cta {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card);
    border-radius: 0.75rem;
    margin-top: 2.5rem;
}

.menu-cta p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.tapas-showcase {
    margin-top: 2.25rem;
}

.tapas-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tapa-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(212,168,67,0.12);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tapa-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,168,67,0.35);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.tapa-card-image-wrap {
    aspect-ratio: 4 / 3;
    background: rgba(0,0,0,0.25);
    overflow: hidden;
}

.tapa-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tapa-card:hover .tapa-card-image {
    transform: scale(1.06);
}

.tapa-card-body {
    padding: 0.8rem 0.85rem 0.95rem;
}

.tapa-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}

.tapa-card-desc {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted-foreground);
}

.tapa-card-price {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-500);
}

@media (max-width: 1100px) {
    .tapas-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .tapas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* About */
.about-section { margin-bottom: 3rem; }

.about-section h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: var(--gold-500);
}

.about-section p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.97rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
    max-width: none;
}

.about-story { max-width: none; }

.about-stats-inline {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.about-stat { text-align: center; }

.about-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: var(--gold-500);
}

.about-stat-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

/* Values */
.values-grid { display: grid; gap: 1rem; }

@media (min-width:640px) {
    .values-grid { grid-template-columns: repeat(2,1fr); }
}

.value-card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1.5rem 1.25rem;
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
    border: 1px solid transparent;
    text-align: center;
}

.value-card:hover {
    background: rgba(255,255,255,0.04);
    transform: translateY(-4px);
    border-color: rgba(212,168,67,0.1);
}

.value-card h3 {
    font-family: var(--font-subheading);
    font-weight: 400;
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: var(--gold-500);
}

.value-card p {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--muted-foreground);
    font-size: 0.92rem;
}

/* Team */
.team-grid { display: grid; gap: 1.5rem; }

@media (min-width:640px) {
    .team-grid { grid-template-columns: repeat(2,1fr); }
}

.team-member {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.team-member:hover {
    transform: translateY(-3px);
    border-color: rgba(212,168,67,0.1);
}

.team-member-img {
    aspect-ratio: 3/4;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-member:hover .team-member-img img { transform: scale(1.05); }

.team-member h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--gold-500);
}

.team-member p {
    color: var(--muted-foreground);
    font-size: 0.92rem;
    margin-top: 0.2rem;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.75rem;
}

@media (min-width:768px) {
    .contact-layout {
        grid-template-columns: 1fr 1.3fr;
        gap: 2.5rem;
    }
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--card);
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}

.contact-row:hover {
    border-color: rgba(212,168,67,0.1);
    transform: translateX(4px);
}

.contact-row svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--gold-500);
}

.contact-row div { display: flex; flex-direction: column; }

.contact-row-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    margin-bottom: 0.1rem;
}

.contact-row-value { font-size: 1rem; }

.contact-schedule {
    padding: 1rem;
    background: var(--card);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.contact-schedule-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--gold-500);
}

.contact-schedule-title svg {
    flex-shrink: 0;
    color: var(--gold-500);
}

.contact-schedule-line {
    font-size: 0.92rem;
    color: var(--foreground);
    line-height: 1.5;
}

.contact-map-section {
    width: 100%;
    margin-top: 3rem;
}

.contact-map {
    border-radius: 0.75rem;
    overflow: hidden;
    height: 400px;
    background: var(--muted);
    border: 1px solid var(--border);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form */
.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.form-success h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gold-500);
}

.form-success p { color: var(--muted-foreground); }

/* Profile Loading */
.profile-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 4rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 320px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: fadeInUp 0.6s ease-out;
}

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

.profile-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(251,191,36,0.2);
    border-top-color: var(--gold-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.profile-loading-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--foreground);
    text-align: center;
    letter-spacing: 0.025em;
    animation: fadeIn 1s ease-out 0.3s both;
}

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

.profile-loading-text::after {
    content: '';
    display: inline-block;
    width: 1em;
    animation: dots 1.5s steps(4,end) infinite;
}

@keyframes dots {
    0%,20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%,100% { content: '...'; }
}

/* Profile Page */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.profile-email {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.reservation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    margin-bottom: 1rem;
}

.reservation-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

.reservation-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .reservation-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .reservation-card-inner .btn {
        width: 100%;
    }
}

.reservation-card-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.reservation-date-badge {
    width: 4rem;
    height: 4rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reservation-date-badge .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-500);
}

.reservation-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.reservation-meta {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.reservation-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.reservation-card-past {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.015);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2rem;
    border: 1px dashed var(--border);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.empty-state p {
    color: var(--muted-foreground);
}

.edit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .edit-form-grid {
        grid-template-columns: 1fr;
    }
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-main-content {
    display: flex;
    flex-direction: column;
}

.legal-content, .privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2, .privacy-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--gold-500);
    margin-bottom: 1.5rem;
}

.legal-content h3, .privacy-content h3 {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p, .privacy-content p {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul, .privacy-content ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.5rem 1.5rem;
}

.legal-content ul li, .privacy-content ul li {
    color: var(--muted-foreground);
    line-height: 1.6;
    padding: 0.25rem 0;
}
