/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #DC2626;
    --primary-gold: #F59E0B;
    --primary-teal: #0891B2;
    --dark-red: #991B1B;
    --dark-teal: #0E7490;
    --light-teal: #0EA5E9;
    --dark-bg: #0f1419;
    --card-bg: #1a2127;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d1;
    --border-color: #2a3441;
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(220, 38, 38, 0.1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(245,158,11,0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(245,158,11,0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(220,38,38,0.06) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(220,38,38,0.06) 75%);
    background-size: 60px 60px, 60px 60px, 30px 30px, 30px 30px;
    background-position: 0 0, 30px 30px, 0 0, 15px 15px;
    background-repeat: repeat, repeat, repeat, repeat;
    opacity: 1;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('assests/default-category.png'),
        url('assests/default-category.png'),
        url('assests/default-category.png');
    background-size: 350px auto, 220px auto, 120px auto;
    background-position: 0 0, 175px 175px, 280px 80px;
    background-repeat: repeat, repeat, repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: -2;
}

/* Mobil responsive logo positioning */
@media (max-width: 768px) {
    body::after {
        background-position: 50% 0, calc(50% + 110px) 110px, calc(50% + 140px) 60px;
        background-size: 280px auto, 180px auto, 100px auto;
    }
}

@media (max-width: 480px) {
    body::after {
        background-position: 50% 0, calc(50% + 90px) 90px, calc(50% + 120px) 50px;
        background-size: 220px auto, 140px auto, 80px auto;
    }
}

/* Header Styles */
.main-header {
    background: black;
    padding: 2rem 0;
    box-shadow: 0 4px 20px var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-red) 0%, transparent 70%);
    opacity: 0.05;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 4px 8px var(--shadow-dark));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.brand-section {
    text-align: center;
}

.restaurant-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px var(--shadow-dark);
    letter-spacing: 2px;
}

.restaurant-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
    min-height: 60vh;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--shadow-dark);
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: rgba(26, 33, 39, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-dark);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-dark), 0 0 20px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.5);
    background: rgba(26, 33, 39, 0.95);
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-red) 0%, var(--primary-gold) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 0.9;
}

.category-overlay i {
    font-size: 2rem;
    color: var(--text-primary);
    transform: translateX(-20px);
    transition: transform 0.3s ease;
}

.category-card:hover .category-overlay i {
    transform: translateX(0);
}

.category-info {
    padding: 1.5rem;
}

.category-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-left: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Error and Empty States */
.error-message, .no-categories {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

/* Footer */
.main-footer {
    background: transparent;
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .logo {
        height: 100px;
    }
    
    .restaurant-name {
        font-size: 2rem;
    }
    
    .restaurant-tagline {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .welcome-section {
        margin-bottom: 2rem;
    }
    
    .welcome-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    

    
    .category-info {
        padding: 1rem;
    }
    
    .category-name {
        font-size: 1.3rem;
    }
    
    .main-footer {
        padding: 0.8rem 0;
        margin-top: 1.5rem;
    }
    
    .footer-text {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 1rem 0;
    }
    
    .logo {
        height: 80px;
    }
    
    .restaurant-name {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .restaurant-tagline {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .welcome-section {
        margin-bottom: 1.5rem;
    }
    
    .welcome-title {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
    }
    
    .menu-grid {
        gap: 1rem;
        margin-top: 1rem;
    }
    

    
    .category-info {
        padding: 0.8rem;
    }
    
    .category-name {
        font-size: 1.2rem;
    }
    
    .category-desc {
        font-size: 0.8rem;
    }
    
    .main-footer {
        padding: 0.6rem 0;
        margin-top: 1rem;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
} 