/* Compact Restaurant Header - Desktop & Mobile */

.restaurant-header {
    background: transparent; /* No background on desktop */
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

/* White background only on mobile */
@media (max-width: 767px) {
    .restaurant-header {
        background: white;
    }
}

.restaurant-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.restaurant-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo in Circle */
.restaurant-logo-container {
    flex-shrink: 0;
}

.restaurant-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Restaurant Info - Compact */
.restaurant-info {
    flex: 1;
    min-width: 0;
}

.restaurant-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-address {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurant-address i {
    color: #999;
    font-size: 0.75rem;
}

/* Status Badge - Inline */
.restaurant-status-container {
    display: inline-block;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-badge.open {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.opening-soon {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.closed-tomorrow {
    background: #fce4ec;
    color: #c2185b;
}

.status-badge.closed {
    background: #ffebee;
    color: #c62828;
}

.status-badge i {
    font-size: 0.75rem;
}

.status-text {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta Info - Compact Pills */
.restaurant-meta {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #555;
}

.meta-item i {
    font-size: 0.7rem;
    color: #888;
}

/* Action Buttons - Top Right */
.restaurant-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.action-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    text-decoration: none;
}

.action-button:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
    color: #333;
}

.action-button i {
    font-size: 14px;
}

/* Desktop Specific */
@media (min-width: 768px) {
    .restaurant-header {
        padding: 16px 0;
    }
    
    .restaurant-logo {
        width: 90px;  /* Bigger logo on desktop */
        height: 90px;
    }
    
    .restaurant-name {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .restaurant-address {
        font-size: 0.9375rem;
    }
    
    .status-badge {
        font-size: 0.875rem;
        padding: 5px 12px;
    }
    
    .status-text {
        max-width: 400px;
    }
    
    .meta-item {
        font-size: 0.8125rem;
        padding: 4px 10px;
    }
    
    .action-button {
        width: 40px;
        height: 40px;
    }
    
    .action-button i {
        font-size: 16px;
    }
}

/* Mobile Specific */
@media (max-width: 767px) {
    .restaurant-header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .restaurant-logo {
        width: 50px;
        height: 50px;
    }
    
    .restaurant-info {
        flex: 1;
        min-width: calc(100% - 150px);
    }
    
    .restaurant-actions {
        position: absolute;
        top: 12px;
        right: 15px;
        gap: 6px;
    }
    
    .action-button {
        width: 32px;
        height: 32px;
    }
    
    .action-button i {
        font-size: 12px;
    }
    
    /* Hide less important buttons on mobile */
    .action-button.reservation-button,
    .action-button.call-button {
        display: none;
    }
    
    /* Only show info and account/login on mobile */
    .action-button.info-button,
    .action-button.account-button,
    .action-button.login-button {
        display: flex;
    }
    
    .restaurant-name {
        font-size: 1.1rem;
    }
    
    .restaurant-address {
        font-size: 0.8125rem;
    }
    
    .restaurant-meta {
        gap: 6px;
    }
    
    .meta-item {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .status-text {
        max-width: 200px;
    }
}

/* Ultra Small Mobile */
@media (max-width: 380px) {
    .restaurant-logo {
        width: 45px;
        height: 45px;
    }
    
    .restaurant-name {
        font-size: 1rem;
    }
    
    .restaurant-info {
        min-width: calc(100% - 130px);
    }
    
    .meta-item span {
        display: none;
    }
    
    .meta-item {
        padding: 3px 5px;
    }
    
    .meta-item i {
        margin: 0;
    }
}

/* Quick Info Dropdown for Mobile */
@media (max-width: 767px) {
    .quick-info-dropdown {
        position: absolute;
        top: 100%;
        right: 15px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
        min-width: 250px;
        display: none;
    }
    
    .quick-info-dropdown.show {
        display: block;
    }
    
    .quick-info-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 0;
        font-size: 0.875rem;
        color: #333;
    }
    
    .quick-info-item i {
        width: 16px;
        color: #666;
        font-size: 0.875rem;
    }
    
    .quick-info-item + .quick-info-item {
        border-top: 1px solid #f0f0f0;
    }
}

/* Status animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.status-badge.open i {
    animation: pulse 2s infinite;
}

/* Tooltip for action buttons */
.action-button {
    position: relative;
}

.action-button::after {
    content: attr(title);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.action-button:hover::after {
    opacity: 1;
}

/* Mobile: No tooltips */
@media (max-width: 767px) {
    .action-button::after {
        display: none;
    }
}