/**
 * Home Page Styles
 * Specific styles for the homepage sections
 */

/* Root Variables */
:root {
    --primary-black: #000000;
    --primary-red: #DC2626;
    --dark-grey: #374151;
    --medium-grey: #6B7280;
    --light-grey: #F3F4F6;
    --pure-white: #FFFFFF;
    --hover-red: #B91C1C;
    --background: #FAFAFA;
    --border: #E5E7EB;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--primary-black);
    background: var(--pure-white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    margin-top: 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-grey) 0%, var(--pure-white) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Typing Animation */
.typing-text {
    position: relative;
    display: inline-block;
}

.typing-text::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 1.2em;
    background: var(--primary-red);
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
    animation-fill-mode: forwards;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 10vw, 120px);
    line-height: 1;
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease-out;
}

.hero-title-accent {
    color: var(--primary-red);
    display: block;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 24px);
    color: var(--medium-grey);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: var(--hover-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
}

.btn-outline:hover {
    background: var(--primary-black);
    color: white;
    transform: translateY(-2px);
}

.hero-shape {
    display: none;
    /* Removed red balloon from hero section */
}

/* Common Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title span {
    color: var(--primary-red);
}

.section-subtitle {
    color: var(--medium-grey);
    font-size: 18px;
}

/* Stores Section */
.stores-section {
    background: var(--pure-white);
}

/* Store Search */
.store-search-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.store-search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    transition: var(--transition);
    border: 2px solid var(--light-grey);
}

.store-search-box:focus-within {
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary-red);
}

.store-search-box i.bi-search {
    color: var(--medium-grey);
    font-size: 20px;
    margin-right: 15px;
}

.store-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--primary-black);
    background: transparent;
}

.store-search-input::placeholder {
    color: var(--medium-grey);
}

.clear-search {
    background: none;
    border: none;
    color: var(--medium-grey);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.clear-search:hover {
    color: var(--primary-red);
}

.search-results-count {
    text-align: center;
    margin-top: 15px;
    color: var(--medium-grey);
    font-size: 14px;
}

.search-results-count span {
    font-weight: 600;
    color: var(--primary-red);
}

/* Stores CTA */
.stores-cta {
    text-align: center;
    margin-top: 50px;
}

.stores-cta .btn {
    min-width: 200px;
}

/* Hide stores when filtering */
.store-card.hidden {
    display: none !important;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 350px));
    gap: 30px;
    justify-content: center;
}

.store-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.store-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.store-card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-placeholder {
    font-size: 48px;
    color: var(--medium-grey);
}

.store-card-content {
    padding: 25px;
    text-align: center;
}

.store-name {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center !important;
    width: 100%;
    display: block;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* More specific selector to ensure it applies */
.store-card .store-card-content h3.store-name,
.stores-grid .store-card h3.store-name,
h3.store-name {
    font-size: 20px !important;
}

.store-address {
    color: var(--medium-grey);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.store-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.store-link:hover {
    gap: 12px;
}

/* Products Section */
.products-section {
    background: var(--background);
}

/* Features Section */
.features-section {
    background: var(--light-grey);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--medium-grey);
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert p {
    margin: 0;
}

.alert p:not(:last-child) {
    margin-bottom: 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--hover-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-black);
}

.contact-card p {
    color: var(--medium-grey);
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--hover-red);
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* Benefits Section */
.benefits-section {
    background: var(--background);
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), #FF6B6B);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-red), #FF6B6B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.icon-symbol {
    font-size: 36px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.benefit-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-black);
    font-weight: 700;
}

.benefit-card p {
    color: var(--medium-grey);
    font-size: 16px;
    line-height: 1.5;
}

/* Featured Products - Product Store Name Styling */
.product-store {
    color: var(--medium-grey);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 0.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 60px 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stores-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .store-card {
        max-width: none;
        width: 100%;
    }

    .store-name {
        font-size: 15px;
    }

    .product-store {
        font-size: 8px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 0 auto 15px;
    }

    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .contact-card {
        padding: 25px 20px;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
}

/* Extra Mobile Responsive - Features Section */
@media (max-width: 480px) {
    .features-section {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }

    .feature-card {
        padding: 25px 15px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin: 0 10px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0 auto 12px;
    }

    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .feature-card p {
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }
}