/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Background */
body {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    background-attachment: fixed;
    color: #2d3748;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    min-height: 100vh;
}

/* Header Styling */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: #2d3748;
    text-align: center;
    padding: 40px 20px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #8B0000;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 0.95rem;
    margin: 5px 0;
    font-weight: 400;
    color: #718096;
}

/* Menu Section */
.menu {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 16px 30px;
}

.menu h2 {
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Category Styling */
.category {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Category Header */
.category h3 {
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    padding: 18px 20px;
}

/* List Styling */
.category ul {
    list-style: none;
    padding: 12px;
    margin: 0;
}

.category ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 12px;
    font-size: 1rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category ul li:last-child {
    margin-bottom: 0;
}

/* Hover Effect for List Items */
.category ul li:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.08) 0%, rgba(220, 20, 60, 0.08) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.15);
}

/* Item and Price Styling */
.item {
    flex-grow: 1;
    font-weight: 500;
    color: #2d3748;
    padding-right: 12px;
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #8B0000;
    text-align: right;
    min-width: 80px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(220, 20, 60, 0.1) 100%);
    padding: 6px 12px;
    border-radius: 8px;
}

/* Footer for Contact Info */
footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #4a5568;
    margin-top: 30px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 0.9rem;
    margin-top: 8px;
    color: #718096;
}

footer a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #DC143C;
}

/* Phone Link Styling */
.phone-link {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.phone-link:hover {
    color: #DC143C;
    transform: scale(1.05);
}

/* Search Container */
.search-container {
    margin-bottom: 20px;
}

#search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid rgba(139, 0, 0, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2d3748;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#search-input:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.15);
    transform: translateY(-2px);
}

#search-input::placeholder {
    color: #a0aec0;
}

/* Highlight search results */
.category ul li.highlight {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.12) 0%, rgba(220, 20, 60, 0.12) 100%);
    border: 2px solid rgba(139, 0, 0, 0.3);
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(139, 0, 0, 0.4);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader {
    text-align: center;
    color: #fff;
}

.loader .plate {
    font-size: 4rem;
    animation: bounce 1s infinite;
}

.loader p {
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: 600;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 30px 16px 25px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 0.85rem;
    }

    .menu {
        padding: 0 12px 30px;
    }

    .menu h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .category h3 {
        font-size: 1.2rem;
        padding: 15px 16px;
    }

    .category ul {
        padding: 10px;
    }

    .category ul li {
        padding: 14px 10px;
        font-size: 0.95rem;
    }

    .item {
        padding-right: 10px;
    }

    .price {
        font-size: 1rem;
        min-width: 70px;
        padding: 5px 10px;
    }

    .lang-switcher button {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 45px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }

    .category ul li {
        padding: 12px 8px;
    }

    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }

    #search-input {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lang-switcher button {
    background: rgba(139, 0, 0, 0.1);
    border: 2px solid transparent;
    color: #8B0000;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 50px;
}

.lang-switcher button.active {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    transform: translateY(-2px);
}

.lang-switcher button:hover:not(.active) {
    background: rgba(139, 0, 0, 0.2);
    border-color: #8B0000;
    transform: translateY(-1px);
}

/* RTL Adjustments */
[dir="rtl"] .category h3 {
    text-align: center;
}

[dir="rtl"] .category ul li:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .item {
    padding-right: 0;
    padding-left: 12px;
}

body.rtl .scroll-top-btn {
    right: auto;
    left: 30px;
}

body.rtl #search-input {
    text-align: right;
    direction: rtl;
}

@media (max-width: 480px) {
    body.rtl .scroll-top-btn {
        left: 20px;
    }
}

/* Error message styling */
.error-message {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #e53e3e;
    padding: 20px;
    border-radius: 16px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    border: 2px solid #fc8181;
    box-shadow: 0 8px 32px rgba(229, 62, 62, 0.2);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* SEO Content Section */
.seo-content {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    color: #2d3748;
}

.seo-content h2 {
    font-size: 1.8rem;
    color: #8B0000;
    margin-bottom: 20px;
    text-align: center;
}

.seo-content h3 {
    font-size: 1.3rem;
    color: #8B0000;
    margin-top: 25px;
    margin-bottom: 15px;
}

.seo-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #4a5568;
}

.seo-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.seo-content ul li {
    padding: 8px 0;
    color: #4a5568;
    line-height: 1.6;
}

.seo-content a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
}

.seo-content a:hover {
    color: #DC143C;
    text-decoration: underline;
}

.seo-content .keywords {
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.6;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .seo-content {
        margin: 30px 12px;
        padding: 25px 16px;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }

    .seo-content h3 {
        font-size: 1.2rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category {
    animation: fadeIn 0.5s ease-out;
}

.category:nth-child(1) { animation-delay: 0.1s; }
.category:nth-child(2) { animation-delay: 0.2s; }
.category:nth-child(3) { animation-delay: 0.3s; }
.category:nth-child(4) { animation-delay: 0.4s; }
.category:nth-child(5) { animation-delay: 0.5s; }
.category:nth-child(6) { animation-delay: 0.6s; }