/* Ice Cream Manager - Frontend Styles */

.ice-cream-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.ice-cream-grid-1 { grid-template-columns: 1fr; }
.ice-cream-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ice-cream-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ice-cream-grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.ice-cream-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.ice-cream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ice-cream-card.featured {
    border: 3px solid #FFD700;
}

.ice-cream-card.featured::before {
    content: "⭐ Highlight";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #333;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.ice-cream-card.unavailable {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.ice-cream-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.ice-cream-card:hover .ice-cream-image img {
    transform: scale(1.05);
}

.ice-cream-content {
    padding: 1.5rem;
}

.ice-cream-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.ice-cream-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.ice-cream-title a:hover {
    color: #2196F3;
}

.ice-cream-description {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.5;
}

.ice-cream-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ice-cream-property {
    display: inline-flex;
    align-items: center;
    background: #f0f8ff;
    color: #2196F3;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e3f2fd;
}

.ice-cream-property i {
    margin-right: 4px;
    font-size: 10px;
}

.ice-cream-status {
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 1rem;
}

.ice-cream-status.unavailable {
    background: #ffebee;
    color: #c62828;
}

/* Single Ice Cream Styles */
.ice-cream-single {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ice-cream-single-image {
    height: 300px;
    overflow: hidden;
}

.ice-cream-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ice-cream-single-content {
    padding: 2rem;
}

.ice-cream-single-title {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.ice-cream-categories {
    margin-bottom: 1rem;
}

.ice-cream-category {
    display: inline-block;
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.ice-cream-properties-single {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.ice-cream-property-single {
    display: inline-flex;
    align-items: center;
    background: #f0f8ff;
    color: #2196F3;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e3f2fd;
}

.ice-cream-property-single i {
    margin-right: 8px;
}

.ice-cream-description-full,
.ice-cream-ingredients,
.ice-cream-allergens {
    margin-bottom: 1.5rem;
}

.ice-cream-description-full h4,
.ice-cream-ingredients h4,
.ice-cream-allergens h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.ice-cream-description-full p,
.ice-cream-ingredients p,
.ice-cream-allergens p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.ice-cream-status-single.unavailable {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ice-cream-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .ice-cream-card {
        margin: 0 1rem;
    }
    
    .ice-cream-content {
        padding: 1rem;
    }
    
    .ice-cream-single {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .ice-cream-single-content {
        padding: 1.5rem;
    }
    
    .ice-cream-single-title {
        font-size: 1.5rem;
    }
    
    .ice-cream-properties-single {
        gap: 0.5rem;
    }
    
    .ice-cream-property-single {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Theme Integration */
.ice-cream-single h2,
.ice-cream-single h4 {
    font-family: inherit;
}

.ice-cream-card,
.ice-cream-single {
    font-family: inherit;
}

/* Animation for hover effects */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ice-cream-card.featured:hover {
    animation: pulse 1s ease-in-out;
}

/* Loading states */
.ice-cream-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.ice-cream-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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