/*
 * KOGO Home Page CSS
 * Hero, Categories, Promo Cards, Food Cards, Why Choose
 * Version 1.0
 */

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 6rem 0;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-title-highlight {
    background: linear-gradient(135deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Hero Search Box */
.hero-search {
    background-color: white;
    border-radius: 20px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    max-width: 500px;
    transition: all 0.3s ease;
}

.hero-search:focus-within {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.hero-search-inner {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.hero-search-inner i {
    color: #94a3b8;
    margin-right: 0.75rem;
}

.hero-search-input {
    flex: 1;
    padding: 0.875rem 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1e293b;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-input:focus {
    outline: none;
}

.hero-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* Hero Foods Grid */
.hero-foods {
    display: none;
}

@media (min-width: 1024px) {
    .hero-foods {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.hero-food-card {
    background-color: white;
    border-radius: 20px;
    padding: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: float 3s ease-in-out infinite;
}

.hero-food-card:nth-child(1) {
    animation-delay: 0s;
}

.hero-food-card:nth-child(2) {
    animation-delay: 0.3s;
    margin-top: 2rem;
}

.hero-food-card:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-food-card:nth-child(4) {
    animation-delay: 0.9s;
    margin-top: 2rem;
}

.hero-food-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 0.75rem;
}

.hero-food-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-food-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f97316;
}

/* ==========================================
   SECTION COMMON
   ========================================== */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.section-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f97316;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.section-link:hover {
    gap: 0.75rem;
}

/* ==========================================
   CATEGORY CARDS
   ========================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-card {
    background-color: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.15);
    border-color: #fed7aa;
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
}

.category-icon.orange {
    background-color: #fff7ed;
}

.category-icon.yellow {
    background-color: #fef9c3;
}

.category-icon.green {
    background-color: #dcfce7;
}

.category-icon.blue {
    background-color: #dbeafe;
}

.category-icon.purple {
    background-color: #ede9fe;
}

.category-icon.gray {
    background-color: #f1f5f9;
}

.category-icon i {
    font-size: 1.25rem;
}

.category-icon.orange i {
    color: #f97316;
}

.category-icon.yellow i {
    color: #eab308;
}

.category-icon.green i {
    color: #22c55e;
}

.category-icon.blue i {
    color: #3b82f6;
}

.category-icon.purple i {
    color: #8b5cf6;
}

.category-icon.gray i {
    color: #64748b;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.category-card:hover .category-icon i {
    color: white;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.category-card:hover .category-name {
    color: #f97316;
}

.category-count {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ==========================================
   PROMO CARDS
   ========================================== */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.promo-card {
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
}

.promo-card.orange {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.promo-card.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.promo-card.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.promo-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.promo-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.promo-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.promo-icon {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    font-size: 5rem;
    opacity: 0.1;
}

/* ==========================================
   FOOD CARDS
   ========================================== */
.foods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .foods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .foods-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .foods-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.food-card {
    background-color: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.food-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.food-card-image {
    position: relative;
    overflow: hidden;
}

.food-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (min-width: 640px) {
    .food-card-img {
        height: 160px;
    }
}

.food-card:hover .food-card-img {
    transform: scale(1.05);
}

.food-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: #22c55e;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.food-favorite-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.food-favorite-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.food-favorite-btn i {
    font-size: 0.875rem;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.food-favorite-btn:hover i,
.food-favorite-btn.active i {
    color: #ef4444;
}

.food-card-body {
    padding: 1rem;
}

.food-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.3rem;
}

.food-card-name:hover {
    color: #f97316;
}

.food-card-merchant {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.food-card-merchant i {
    color: #f97316;
}

.food-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 0.75rem;
}

.food-card-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem;
    background-color: #fff7ed;
    color: #f97316;
    border: none;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.food-card-btn:hover {
    background-color: #f97316;
    color: white;
}

/* ==========================================
   WHY CHOOSE SECTION
   ========================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.why-card {
    background-color: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.why-icon.orange {
    background-color: #fff7ed;
}

.why-icon.green {
    background-color: #dcfce7;
}

.why-icon.blue {
    background-color: #dbeafe;
}

.why-icon.purple {
    background-color: #ede9fe;
}

.why-icon i {
    font-size: 1.25rem;
}

.why-icon.orange i {
    color: #f97316;
}

.why-icon.green i {
    color: #22c55e;
}

.why-icon.blue i {
    color: #3b82f6;
}

.why-icon.purple i {
    color: #8b5cf6;
}

.why-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.why-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}