* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
    text-decoration: none;
}

body {
    background-color: #1a1a1a;
    color: white;
    min-height: 100vh;
    direction: ltr;
}

body.rtl {
    direction: rtl;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-width: 320px; /* Added minimum width for container */
}

.header {
    position: relative;
    text-align: center;
    margin-bottom: 8px;
}

.lang-switch-container {
    position: absolute;
    right: 0;
    bottom: 40px;
}

body.rtl .lang-switch-container {
    right: 0;
    left: auto;
}

.logo {
    width: 96px;
    height: 96px;
    min-width: 60px; /* Added minimum width */
    min-height: 60px; /* Added minimum height */
    background-color: white;
    border-radius: 12px;
    padding: 8px;
    margin: 0 auto;
}

.brand-title {
    margin-top: 8px;
    font-size: 24px;
    font-weight: bold;
}

.rtl .brand-title {
    font-size: 22px;
}

/* Dropdown styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #2a2a2a;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #3a3a3a;
}

.description {
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.social-icon {
    width: 31.8px;
    height: 32px;
    opacity: 0.8;
}

.restaurant-link {
    display: block;
    text-decoration: none;
    color: white;
    margin-bottom: 40px;
    transition: transform 0.2s;
}


.restaurant-card {
    position: relative;
    border-radius: 12px;
}

.restaurant-image {
    width: 100%;
    height: 158px;
    min-width: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.restaurant-name {
    position: absolute;
    bottom: -28px;
    left: 0;
    right: 0;
    padding: 10px; 
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: rgba(39, 39, 39, 0.5);
    border: 1px solid #2A2A2A;
    margin-left: 12px;
    margin-right: 12px;
    backdrop-filter: blur(14px);
    font-size: 16px;
    line-height: 1.5em;
}

.restaurant-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.powered-by {
    display: flex;
    gap: 12px;
    text-align: center;
    padding: 20px 0;
    justify-content: center;
    align-items: center;
}

/* New styles for buttons and popup */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-right: 0;
    margin-left: auto;
}

.rtl .action-buttons{
    margin-right: auto;
    margin-left: 0;
}

.action-button {
    background: rgba(39, 39, 39, 0.5);
    border: 1px solid #2A2A2A;
    backdrop-filter: blur(14px);
    padding: 10px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}



.action-button:hover {
    background: rgba(58, 58, 58, 0.5);
}

/* Delivery Menu Popup Styles */
.delivery-menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
    background: #1a1a1a;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 20px;
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
}

.delivery-menu.show {
    bottom: 0;
}

.delivery-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.delivery-menu-title {
    font-size: 18px;
    font-weight: 600;
}

.delivery-menu-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
}

.delivery-providers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery-provider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(39, 39, 39, 0.5);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.rtl .delivery-provider{
    direction: ltr !important;
}

.rtl .arrow{
    transform: rotateZ(180deg)!important;
}

.delivery-provider:hover {
    background: rgba(58, 58, 58, 0.5);
}

/* Overlay styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.show {
    display: block;
}

/* RTL specific adjustments */
.rtl .delivery-provider {
    flex-direction: row-reverse;
}