/* =========================================
   Sokolink - Landing Page / Store Directory
   ========================================= */

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-gray-50);
}

/* Header */
.landing-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-brand i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.landing-brand-name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-gray-900);
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero */
.landing-hero {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
}

.landing-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 24px 48px;
    max-width: 640px;
    margin: 0 auto;
}

.landing-hero-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 8px;
}

.landing-hero-subtitle {
    font-size: var(--text-base);
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

.landing-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
    position: relative;
}

.landing-search i {
    position: absolute;
    left: 14px;
    color: var(--color-gray-400);
    font-size: var(--text-base);
    pointer-events: none;
}

.landing-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    font-size: var(--text-base);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-lg);
    background: var(--color-gray-50);
    color: var(--color-gray-800);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.landing-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
    background: var(--color-white);
}

.landing-search-input::placeholder {
    color: var(--color-gray-400);
}

/* Stores Section */
.landing-stores {
    flex: 1;
    padding: 32px 24px 48px;
}

.landing-stores-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-stores-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.landing-stores-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-gray-900);
}

.landing-stores-count {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

/* Store Cards Grid */
.landing-stores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* Force every card in a row to the same height so a card with less
       content (e.g. no custom name / 0 products) can't sit shorter or
       lower than its neighbours and create a stair-step/slanted look. */
    align-items: stretch;
}

.landing-store-card {
    display: flex;
    flex-direction: column;
    /* Fill the full height of the grid cell so all cards align top AND
       bottom; combined with margin-top:auto on the products row this
       keeps every card's footer on the same line. */
    height: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.landing-store-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-gray-300);
    text-decoration: none;
}

/* Banner area with module-specific background */
.landing-store-card-banner {
    position: relative;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
}

.landing-store-card-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.landing-store-card-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
    border-radius: inherit;
}

.landing-store-card-banner > *:not(.landing-store-card-banner-overlay):not(.landing-store-card-icon) {
    position: relative;
    z-index: 1;
}

.landing-store-card-icon {
    /* Pin the badge to the EXACT centre of the banner, both axes, so it
       no longer sits at the bottom edge. Absolute + translate centring
       is immune to flex/sibling quirks. */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.landing-store-card-custom-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card body below banner */
.landing-store-card-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.landing-store-card-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 2px;
}

.landing-store-card-subtitle {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.landing-store-card-meta {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-bottom: 12px;
}

.landing-store-card-products {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    margin-top: auto;
}

.landing-store-card-arrow {
    margin-left: 4px;
    color: var(--color-primary);
    font-size: var(--text-xs);
}

/* Empty State */
.landing-stores-empty,
.landing-stores-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 24px;
}

.landing-stores-empty i,
.landing-stores-no-results i {
    font-size: 2.5rem;
    color: var(--color-gray-300);
    margin-bottom: 16px;
}

.landing-stores-empty h3,
.landing-stores-no-results h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 6px;
}

.landing-stores-empty p,
.landing-stores-no-results p {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-bottom: 16px;
}

/* Footer */
.landing-footer {
    background: var(--color-gray-100);
    border-top: 1px solid var(--color-gray-200);
    padding: 24px;
}

.landing-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-footer-brand i {
    color: var(--color-primary);
    font-size: var(--text-lg);
}

.landing-footer-brand span {
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: var(--text-base);
}

.landing-footer-text {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.landing-footer-links {
    display: flex;
    gap: 16px;
}

.landing-footer-links a {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    text-decoration: none;
}

.landing-footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.landing-footer-copyright {
    margin-top: 14px;
    font-size: var(--text-xs, 12px);
    color: var(--color-gray-500);
}

/* Hidden utility (reuse from base if exists) */
.landing-container .hidden {
    display: none !important;
}