﻿/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    max-width: 500px;
}

.search-wrapper {
    position: relative;
    display: flex;
}

.hero-search-input {
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-search-btn {
    padding: 15px 25px;
    border-radius: 0 50px 50px 0;
    background: #28a745;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .hero-search-btn:hover {
        background: #218838;
        transform: translateY(-2px);
    }

/* Floating Cards Animation */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.deal-preview-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float 6s ease-in-out infinite;
    color: #333;
}

    .deal-preview-card.card-1 {
        top: 20%;
        right: 20%;
        animation-delay: 0s;
    }

    .deal-preview-card.card-2 {
        top: 50%;
        right: 50%;
        animation-delay: 2s;
    }

    .deal-preview-card.card-3 {
        top: 70%;
        right: 10%;
        animation-delay: 4s;
    }

.deal-badge {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.deal-amount {
    font-weight: 600;
    color: #28a745;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Enhanced Alert */
.enhanced-alert {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 5px solid #2196f3;
}

/* Featured Deals Section */
.featured-section {
    background: #f8f9fa;
    padding: 40px 0;
    border-radius: 20px;
    margin: 40px 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

    .featured-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    z-index: 2;
    text-align: center;
    min-width: 80px;
}

.discount-percent {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
}

.off-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.featured-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

    .featured-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 20px;
}

.featured-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.featured-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.featured-actions {
    display: flex;
    gap: 10px;
}

.btn-featured {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Deal Cards */
.deals-section {
    margin-top: 40px;
}

.deals-count .badge {
    padding: 10px 15px;
    border-radius: 20px;
}

.deal-item {
    transition: all 0.3s ease;
}

.deal-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .deal-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.deal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-tag {
    font-weight: 700;
    font-size: 1.1rem;
}

.deal-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .deal-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deal-card:hover .image-overlay {
    opacity: 1;
}

.quick-buy-btn {
    background: white;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .quick-buy-btn:hover {
        background: #28a745;
        color: white;
        transform: scale(1.1);
    }

.deal-content {
    padding: 15px;
    flex: 1;
}

.deal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0;
}

.deal-footer {
    padding: 15px;
    display: flex;
    gap: 8px;
    border-top: 1px solid #f0f0f0;
}

    .deal-footer .btn {
        border-radius: 8px;
        font-size: 0.85rem;
        padding: 8px 12px;
        transition: all 0.3s ease;
    }

/* Login Card */
.login-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: shimmer 3s infinite;
    }

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-content {
    position: relative;
    z-index: 2;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-text {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-login {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-login:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-cards {
        display: none;
    }

    .hero-section {
        padding: 60px 0;
    }

    .featured-section {
        margin: 20px 0;
        padding: 30px 0;
    }
}

@media (max-width: 576px) {
    .hero-search-input, .hero-search-btn {
        padding: 12px 15px;
    }

    .featured-actions {
        flex-direction: column;
    }

    .deal-footer {
        flex-direction: column;
    }

        .deal-footer .btn {
            margin-bottom: 5px;
        }
}

/* Loading and Animation Effects */
.deal-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

    .deal-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .deal-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .deal-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .deal-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .deal-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .deal-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .deal-item:nth-child(7) {
        animation-delay: 0.7s;
    }

    .deal-item:nth-child(8) {
        animation-delay: 0.8s;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation styles for JavaScript */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Enhanced Button Effects (override or add to base .btn in site.css) */
.btn {
    /* Only keep enhancements specific to home page here */
    /* Example: */
    /* box-shadow, animation, etc. */
}

/* Ripple effect for buttons (home page only) */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}
