/* Reset and Base Styles */
html {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    font-family: 'Anek Malayalam', sans-serif;
    background: #FFFBEE;
    color: #E6351D;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 12px;
}

.main-content {
    width: 100vw;
    margin: 0;
    padding: 2.5rem 10px 1rem 10px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #E6351D;
    flex: 1;
}

.flavors-container {
    width: calc(100vw - 40px);
    border: 2px solid #E6351D;
    border-radius: 12px;
    padding: 1rem;
    margin: 0 20px 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.flavors-grid.flavor-line-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 5vw;
    width: 100%;
    margin: 0;
    max-width: 100%;
    flex: 1;
}

.flavor-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 45vw;
    min-width: 320px;
    margin-bottom: 0;
    font-size: 2rem;
    font-family: 'Anek Malayalam', sans-serif;
    font-weight: 600;
    color: #E6351D;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0.1em;
    transition: none;
}

.flavor-name {
    font-size: 3rem;
    font-weight: 700;
    color: #E6351D;
    letter-spacing: 0.2px;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.dietary-icons {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.dietary-icon {
    font-size: 3rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    border: none;
    position: relative;
    margin-bottom: 0.1rem;
    transition: none;
}

.svg-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}
.dietary-icon.contains-gluten,
.dietary-icon.contains-nuts {
    color: #e74c3c;
}
.dietary-icon.nut-free,
.dietary-icon.sugar-free {
    color: #3bb54a;
}
.dietary-icon.vegan {
    color: #3bb54a;
}

.vegan-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 1.5rem 0;
    gap: 1rem;
}

.separator-line {
    height: 2px;
    background-color: #E6351D;
    flex: 1;
    max-width: 200px;
}

.separator-text {
    font-size: 2rem;
    font-weight: 700;
    color: #E6351D;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    padding: 0 1rem;
}

.icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 50%;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.icon-overlay.check {
    color: #3bb54a;
    background: #fff;
}
.icon-overlay.warning {
    color: #fff;
    background: #e74c3c;
    font-weight: bold;
    font-size: 0.7rem;
    width: 0.8rem;
    height: 0.8rem;
    right: -0.2rem;
    bottom: -0.2rem;
}

.legend {
    position: static;
    margin: 0 auto 2.5rem auto;
    max-width: 500px;
    width: 100vw;
    text-align: center;
    padding: 0;
    min-width: 0;
    z-index: 100;
    font-size: 1rem;
    max-width: 100vw;
    color: #E6351D;
}

.legend-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: #E6351D;
    text-align: center;
}

.legend-icons {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    color: #E6351D;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #E6351D;
    font-size: 2.25rem;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-weight: 600;
}

.legend-item .dietary-icon {
    font-size: 2.25rem;
    width: 2.8rem;
    height: 2.8rem;
}

.footer {
    background: #FFFBEE;
    border-top: 1px solid #e0e0e0;
    padding: 1.1rem 0;
    margin-top: 2rem;
    text-align: center;
    width: 100vw;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 50;
    color: #E6351D;
}

.footer-content {
    width: 100vw;
    margin: 0 auto;
    color: #E6351D;
    font-size: 1.05rem;
    text-align: center;
}

.last-updated {
    display: none;
}

.legend-below {
    display: none;
}

/* Loading, Error, Empty States */
.loading, .error, .empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    color: #E6351D;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #3bb54a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.2rem;
    background: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading p {
    font-size: 1.05rem;
    color: #E6351D;
}
.error-content h2 {
    font-size: 1.5rem;
    color: #E6351D;
    margin-bottom: 0.6rem;
}
.error-content p {
    font-size: 0.98rem;
    color: #E6351D;
    margin-bottom: 1rem;
}
.retry-btn {
    background: #3bb54a;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.07);
}
.retry-btn:hover {
    background: #2e9e3e;
}
.empty-content h2 {
    font-size: 1.5rem;
    color: #E6351D;
    margin-bottom: 0.6rem;
}
.empty-content p {
    font-size: 0.98rem;
    color: #E6351D;
} 