/* Home Page Specific Styles */

html {
    scroll-behavior: smooth;
}

/* Sticky Navbar for better UX */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Site Themed Search Bar */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-inner {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-inner:focus-within {
    border-color: #111827;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #1f2937;
    font-family: 'Lato', sans-serif;
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: #6c757d;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.search-icon {
    color: #6c757d;
    margin-right: 12px;
    font-size: 1rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.search-inner:focus-within .search-icon {
    color: #111827;
}

.search-clear {
    display: none; /* Hidden by default */
    color: #9ca3af;
    cursor: pointer;
    margin-left: 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.search-clear:hover {
    color: #dc3545;
}

/* Split Hero Section Styles */
.hero-split {
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    position: relative;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .hero-split {
        flex-direction: row;
    }
}

.hero-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: flex 0.4s ease;
    color: white;
}

.hero-option:hover {
    flex: 1.3;
}

/* Backgrounds with overlay */
.option-shop {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1562157873-818bc0726f68?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
}

.option-create {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1503341504253-dff4815485f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
}

.hero-content-inner {
    z-index: 2;
    max-width: 500px;
}

.hero-option h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-option p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@keyframes pulse-white {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hero-or-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.2);
    animation: pulse-white 2s infinite;
}

@media (max-width: 767px) {
    .hero-or-divider { display: none; }
    .hero-split { min-height: auto; }
    .hero-option { padding: 2.5rem 1rem; }
}

/* High contrast button for the dark 'Create Your Own' section */
.option-create .btn {
    background-color: #ffffff;
    color: #111827;
    border: 2px solid #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.option-create .btn:hover {
    background-color: #f3f4f6;
    color: #000000;
    transform: translateY(-2px);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Steps (Integrated How-It-Works) */
.hero-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
}

.hero-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    position: relative;
}

.hero-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-step:hover .hero-step-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-step-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-step-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #111827;
    color: #ffffff;
    padding: 4rem 1rem;
    text-align: center;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.newsletter-input {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    width: 100%;
    max-width: 300px;
    font-family: 'Lato', sans-serif;
}
.newsletter-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background-color: #dc3545;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.newsletter-btn:hover {
    background-color: #bb2d3b;
}