/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&display=swap'); /* For bold titles */

:root {
    --bg-color: #0f0f0f;
    --text-color: #f1f1f1;
    --card-bg: #1e1e1e;
    --accent-purple: #9b26b6;
    --accent-gold: #fbbf24;
    --accent-green: #22c55e;
    --highlight-color: #ffffff;
    --secondary-text: #aaaaaa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

header {
    padding: 20px 40px;
    background-color: rgba(15, 15, 15, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--highlight-color);
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-gold);
}

main {
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 700;
}

/* Grid Layout */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Responsive grid like YouTube */
    gap: 20px;
    row-gap: 40px;
}

/* Card Styling */
.card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: transparent;
}

.card:hover {
    transform: scale(1.02);
}

.thumbnail-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    background-color: #333; /* Placeholder color */
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.card:hover .thumbnail {
    opacity: 0.9;
}

/* Duration/Price Badge in corner */
.badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-info {
    display: flex;
    gap: 12px;
}

.restaurant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-purple); /* Placeholder avatar */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.card-text {
    flex: 1;
}

.dish-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.restaurant-name {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin-bottom: 4px;
}

.meta-info {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.meta-info span {
    margin-right: 8px;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 16px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        overflow-y: hidden; /* Scroll inside panel if needed */
    }
}

.modal-image-container {
    background: #000;
    flex: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1.5;
    padding: 32px;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(0,0,0,0.8);
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.modal-restaurant {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--highlight-color);
    font-weight: 500;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1rem;
    color: var(--highlight-color);
}

.action-btn {
    display: inline-block;
    background-color: var(--accent-purple);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.action-btn:hover {
    background-color: #7e1e94;
}
