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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #EDEEF7 0%, #E4FBFF 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Paper Texture Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 104, 230, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 181, 255, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.1) 2px,
            rgba(255, 255, 255, 0.1) 4px
        );
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #7868E6 0%, #B8B5FF 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(120, 104, 230, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    flex-wrap: wrap;
    max-width: 100%;
}

.header-logo {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    object-fit: contain;
    flex-shrink: 0;
}

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

.header-text {
    text-align: left;
    flex: 1;
    min-width: min(300px, 100%);
    max-width: 100%;
}

.header-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.header-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    opacity: 0.9;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
}

/* Navigation Styles */
.navigation {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #B8B5FF;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation .container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

/* Mobile Menu Toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-mobile-toggle:hover {
    background: rgba(120, 104, 230, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #7868E6;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: 2px solid #7868E6;
    color: #7868E6;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 181, 255, 0.3), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover,
.nav-btn.active {
    background: #7868E6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(120, 104, 230, 0.4);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e6ff;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-text h2 {
    color: #7868E6;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.1rem;
    color: #555;
    max-width: 500px;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.hero-link {
    display: inline-block;
    background: linear-gradient(135deg, #7868E6, #B8B5FF);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(120, 104, 230, 0.3);
    margin-top: 1rem;
}

.hero-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(120, 104, 230, 0.4);
    background: linear-gradient(135deg, #6B5BC7, #a69eff);
}

.hero-link:focus {
    outline: 2px solid #7868E6;
    outline-offset: 2px;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e8f0ff;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #7868E6;
}

.feature-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Age Filter Section */
.age-filter-section {
    margin-bottom: 2rem;
    text-align: center;
}

.age-filter-section h3 {
    color: #7868E6;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-icon {
    cursor: help;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.help-icon:hover {
    opacity: 1;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.age-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #B8B5FF;
    color: #7868E6;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.age-btn:hover,
.age-btn.active {
    background: #B8B5FF;
    color: white;
    transform: scale(1.05);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    border: 2px solid #B8B5FF;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #7868E6;
    box-shadow: 0 0 20px rgba(120, 104, 230, 0.3);
    transform: scale(1.02);
}

/* Food Cards Grid */
.food-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.food-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.food-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7868E6, #B8B5FF);
}

.food-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(120, 104, 230, 0.3);
}

.food-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.food-card-title {
    color: #7868E6;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.food-card-age {
    background: #FFB4B4;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.food-card-quantity {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.food-card-preparation {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

.food-card-source {
    background: rgba(120, 104, 230, 0.1);
    color: #7868E6;
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    border-left: 3px solid #7868E6;
}

/* Forms */
.form {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #7868E6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #B8B5FF;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7868E6;
    box-shadow: 0 0 15px rgba(120, 104, 230, 0.2);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #7868E6, #B8B5FF);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(120, 104, 230, 0.4);
}

.btn-secondary {
    background: rgba(228, 251, 255, 0.8);
    color: #7868E6;
    border: 2px solid #B8B5FF;
}

.btn-secondary:hover {
    background: #B8B5FF;
    color: white;
}

.btn-danger {
    background: #FFB4B4;
    color: white;
}

.btn-danger:hover {
    background: #ff9999;
    transform: translateY(-2px);
}

/* Lists */
.foods-list,
.recipes-list {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.list-item {
    background: rgba(237, 238, 247, 0.5);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #7868E6;
    transition: all 0.3s ease;
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.list-item-title {
    color: #7868E6;
    font-weight: 600;
    font-size: 1.1rem;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 15px;
}

/* Admin Panel */
.admin-panel {
    display: grid;
    gap: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #7868E6;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFB4B4;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.data-preview {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.data-display {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    outline: none;
}

.modal:focus {
    outline: none;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover {
    color: #7868E6;
}

/* Share Modal Styles */
.share-modal-content {
    max-width: 500px;
    padding: 1.5rem;
}

.share-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8f0ff;
}

.share-logo {
    margin-bottom: 1rem;
}

.share-modal-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.share-modal-header h3 {
    color: #7868E6;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.share-modal-header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.share-message {
    margin-bottom: 1.5rem;
}

.share-message label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.share-message textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.share-message textarea:focus {
    outline: none;
    border-color: #7868E6;
    box-shadow: 0 0 0 2px rgba(120, 104, 230, 0.1);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-icon {
    font-size: 1.2rem;
}

/* SVG Icon Styles */
.help-icon {
    color: #7868E6;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.share-icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* Button SVG Icons */
.btn svg {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Platform-specific colors */
.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.copy-link {
    background: #6c757d;
    color: white;
}

/* Back to Top Button */
#back-to-top-btn {
    position: fixed;
    bottom: 115px;
    right: 20px;
    background: #7868E6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(120, 104, 230, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top-btn:hover {
    background: #6B5BC7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(120, 104, 230, 0.4);
}

#back-to-top-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.2);
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Loading Indicator */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #B8B5FF;
    border-top: 5px solid #7868E6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: #7868E6;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    animation: slideIn 0.3s ease forwards;
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #FFB4B4;
}

.toast.warning {
    background: #FF9800;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

/* Footer */
.footer {
    background: #7868E6;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .header-text {
        text-align: center;
        min-width: auto;
        max-width: 100%;
    }
    
    .header-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.3rem;
    }
    
    .header-subtitle {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }
    
    .navigation .container {
        justify-content: flex-end;
    }
    
    .nav-mobile-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid #B8B5FF;
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        border-radius: 0 0 10px 10px;
    }
    
    .hero-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-link {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-btn {
        width: 100%;
        max-width: none;
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .age-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        align-items: center;
    }
    
    .age-btn {
        width: 100%;
        max-width: none;
        margin: 0.25rem 0;
    }
    
    .food-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .list-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .list-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .feature-item {
        width: 100%;
        justify-content: center;
    }
    
    #back-to-top-btn {
        bottom: 115px;
        right: 15px;
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .header-content {
        padding: 0 0.5rem;
    }
    
    .header-title {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        line-height: 1.1;
    }
    
    .header-subtitle {
        font-size: clamp(0.7rem, 3.5vw, 0.9rem);
        line-height: 1.3;
    }
    
    .hero-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    
    .form {
        padding: 1.5rem;
    }
    
    .food-card {
        padding: 1rem;
    }
    
    .food-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .age-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
    }
    
    .age-btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Print Styles */
@media print {
    .navigation,
    .admin-actions,
    .btn {
        display: none;
    }
    
    .food-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .modal {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .food-card,
    .form,
    .list-item {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
