
/* Gluten Free Checker Styles */

.gluten-free-checker-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.gfc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gfc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gfc-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #22c55e;
    margin: 0 0 0.5rem 0;
}

.gfc-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

.gfc-error,
.gfc-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.gfc-error,
.gfc-alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.gfc-error p {
    margin: 0.5rem 0;
}

.gfc-checker-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.gfc-input-wrapper {
    margin-bottom: 1rem;
}

.gfc-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gfc-input:focus {
    outline: none;
    border-color: #22c55e;
}

.gfc-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: #22c55e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.gfc-button:hover:not(:disabled) {
    background: #16a34a;
}

.gfc-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.gfc-loading {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.gfc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #22c55e;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: gfc-spin 1s linear infinite;
}

@keyframes gfc-spin {
    to { transform: rotate(360deg); }
}

.gfc-loading p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.gfc-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gfc-error-icon {
    font-size: 1.5rem;
}

.gfc-error-message {
    flex: 1;
}

.gfc-result {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.gfc-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.gfc-status-safe {
    background: #dcfce7;
    color: #166534;
}

.gfc-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.gfc-status-icon {
    font-size: 2rem;
}

.gfc-status-text {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.gfc-analysis {
    margin-top: 1.5rem;
}

.gfc-section {
    margin-bottom: 1.5rem;
}

.gfc-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.gfc-section p {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.gfc-confidence {
    font-size: 0.9rem;
    color: #64748b;
}

.gfc-alternatives {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gfc-alternatives li {
    padding: 0.75rem;
    background: #f8fafc;
    border-left: 3px solid #22c55e;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.gfc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gfc-feature {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gfc-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.gfc-feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.gfc-feature p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .gluten-free-checker-container {
        padding: 1rem;
    }
    
    .gfc-title {
        font-size: 2rem;
    }
    
    .gfc-subtitle {
        font-size: 1rem;
    }
    
    .gfc-checker-form {
        padding: 1.5rem;
    }
}
