/* Kitchen Price Tracker - Professional UI */

* {
    box-sizing: border-box;
}

.kitchen-tracker {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.kitchen-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    border-radius: 20px;
    color: white;
}

.kitchen-header h1 {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.kitchen-header p {
    font-size: 22px;
    margin: 0;
    opacity: 0.95;
}

/* Submit Box */
.kitchen-submit-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe0b3 100%);
    border: 3px solid #ff9a56;
    border-radius: 20px;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    box-shadow: 0 8px 20px rgba(255, 154, 86, 0.15);
}

.kitchen-submit-box h3 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #333;
}

.kitchen-submit-box p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.kitchen-login-box {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
}

.kitchen-login-box a {
    color: #3b82f6;
    font-weight: 700;
    text-decoration: none;
}

.kitchen-login-box a:hover {
    text-decoration: underline;
}

/* Buttons */
.kitchen-btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 16px 36px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.kitchen-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.kitchen-btn-search {
    background: #ff9a56;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.kitchen-btn-search:hover {
    background: #ff8a40;
}

.kitchen-btn-chart {
    background: #3b82f6;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.kitchen-btn-chart:hover {
    background: #2563eb;
}

.kitchen-btn-track {
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.kitchen-btn-track:hover {
    background: #059669;
}

.kitchen-btn-track.tracked {
    background: #94a3b8;
    cursor: default;
}

.kitchen-btn-buy {
    background: linear-gradient(135deg, #ff9a56 0%, #ff8a40 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 154, 86, 0.3);
}

.kitchen-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 154, 86, 0.4);
}

.kitchen-btn-lg {
    padding: 18px 48px;
    font-size: 20px;
    margin-top: 30px;
}

/* Filters */
.kitchen-filters {
    margin-bottom: 40px;
}

.kitchen-filters h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.kitchen-pills {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.kitchen-pill {
    padding: 14px 28px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.kitchen-pill:hover {
    border-color: #ff9a56;
    color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 154, 86, 0.2);
}

.kitchen-pill.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9a56 100%);
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Search */
.kitchen-search {
    margin-bottom: 50px;
}

.kitchen-search form {
    display: flex;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.kitchen-search-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.kitchen-search-input:focus {
    outline: none;
    border-color: #ff9a56;
    box-shadow: 0 0 0 4px rgba(255, 154, 86, 0.1);
}

/* Products Grid */
.kitchen-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.kitchen-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.kitchen-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #ff9a56;
}

.kitchen-card-img {
    position: relative;
    background: #f9fafb;
    padding: 30px;
    text-align: center;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kitchen-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kitchen-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.kitchen-card-content {
    padding: 25px;
}

.kitchen-card-cat {
    font-size: 13px;
    color: #ff6b6b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.kitchen-card-title {
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 15px;
    color: #1f2937;
    font-weight: 600;
    min-height: 51px;
}

.kitchen-card-price {
    margin-bottom: 10px;
}

.price-current {
    font-size: 32px;
    font-weight: 800;
    color: #ff6b6b;
    letter-spacing: -1px;
}

.price-original {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 10px;
}

.kitchen-card-range {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.kitchen-card-range small {
    font-size: 13px;
    color: #6b7280;
}

.kitchen-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* No Products */
.kitchen-no-products {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    grid-column: 1 / -1;
}

.kitchen-no-products h3 {
    font-size: 28px;
    color: #4b5563;
    margin-bottom: 15px;
}

.kitchen-no-products p {
    font-size: 16px;
    color: #9ca3af;
}

.kitchen-no-products a {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
}

.kitchen-no-products a:hover {
    text-decoration: underline;
}

/* Modal */
.kitchen-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kitchen-modal-content {
    background: white;
    margin: 3% auto;
    padding: 40px;
    border-radius: 24px;
    max-width: 900px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

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

.kitchen-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.kitchen-modal-close:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

.kitchen-modal-content h2 {
    font-size: 28px;
    margin: 0 0 30px;
    color: #1f2937;
}

.kitchen-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.kitchen-input:focus {
    outline: none;
    border-color: #ff9a56;
    box-shadow: 0 0 0 4px rgba(255, 154, 86, 0.1);
}

.kitchen-loader {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #6b7280;
}

.kitchen-loader::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* History Modal */
.kitchen-history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.kitchen-history-stats > div {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 16px;
    border: 2px solid #e5e7eb;
}

.kitchen-history-stats span {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kitchen-history-stats strong {
    display: block;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Form Styles */
form p {
    margin-bottom: 25px;
}

form label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
}

form small {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

#kitchenSubmitMessage {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .kitchen-products {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .kitchen-header h1 {
        font-size: 42px;
    }
    
    .kitchen-header p {
        font-size: 18px;
    }
    
    .kitchen-submit-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 25px;
    }
    
    .kitchen-submit-box h3 {
        font-size: 22px;
    }
    
    .kitchen-pills {
        gap: 10px;
    }
    
    .kitchen-pill {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .kitchen-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kitchen-history-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .kitchen-modal-content {
        margin: 10% 15px;
        padding: 30px 20px;
    }
    
    .kitchen-search form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .kitchen-tracker {
        padding: 20px 15px;
    }
    
    .kitchen-header {
        padding: 40px 20px;
    }
    
    .kitchen-header h1 {
        font-size: 32px;
    }
    
    .price-current {
        font-size: 26px;
    }
}

/* Loading State */
.kitchen-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.kitchen-message-success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.kitchen-message-error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
}

/* Smooth Transitions */
* {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

button, a {
    transition: all 0.3s ease;
}
