/* Home page specific styles */

.home-page {
    background: linear-gradient(180deg, #faf0e6 0%, #fff 45%, #fdfaf5 100%);
    color: #2c3e50;
}

/* Logo styles */
.home-hero-logo {
    max-width: 470px;
    height: auto;
    width: 100%;
    display: block;
    margin: 0 auto;
}

.home-page .home-search-section {
    position: relative;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(213, 189, 147, 0.35);
}

.home-page .home-search-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(210, 180, 140, 0.18), transparent 55%),
                radial-gradient(circle at bottom left, rgba(188, 154, 106, 0.12), transparent 60%);
    pointer-events: none;
}

.home-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-warm-600, #7a5830);
    text-shadow: 0 8px 24px rgba(122, 88, 48, 0.18);
}

.home-hero-subtitle {
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    margin-bottom: 2.25rem;
    color: rgba(255, 255, 255, 0.76);
}

.home-search-form {
    width: 100%;
    max-width: var(--max-content-width, 1180px);
    margin-inline: auto;
}

.home-search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: clamp(1.75rem, 2vw + 1.2rem, 2.5rem);
    box-shadow: 0 28px 60px rgba(122, 88, 48, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.55);
    position: relative;
    overflow: hidden;
}

.home-search-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(210, 180, 140, 0.15), rgba(255, 255, 255, 0));
    opacity: 0.85;
    pointer-events: none;
}

.home-search-card > * {
    position: relative;
    z-index: 1;
}

.home-page .search-container {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.home-search-input-group {
    position: relative;
    flex: 1;
    min-width: 260px;
    margin-bottom: 0;
}

.home-search-input-wrapper {
    position: relative;
}

.home-search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #bc9a6a;
    font-size: 1.2rem;
    z-index: 2;
}

.home-search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 72px;
    border: 2px solid rgba(233, 236, 239, 0.85);
    border-radius: 16px;
    font-size: 1.1rem;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.home-search-input:focus,
.home-search-input:focus-visible {
    outline: none;
    border-color: rgba(188, 154, 106, 0.75);
    box-shadow: 0 0 0 0.18rem rgba(188, 154, 106, 0.28);
    background: #ffffff;
}

.home-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

.home-filter-dropdown {
    position: relative;
}

.home-filter-select {
    width: 100%;
    padding: 0.85rem 3rem 0.85rem 1.15rem;
    border: 2px solid rgba(233, 236, 239, 0.85);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 1rem;
    color: #495057;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    min-height: 54px;
}

.home-filter-select:focus,
.home-filter-select:focus-visible {
    outline: none;
    border-color: rgba(188, 154, 106, 0.75);
    box-shadow: 0 0 0 0.16rem rgba(188, 154, 106, 0.24);
    background: #ffffff;
}

.home-filter-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bc9a6a;
    pointer-events: none;
}

.home-search-button {
    border: none;
    padding: 1rem 3rem;
    border-radius: var(--btn-radius, 15px);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 20px 40px rgba(188, 154, 106, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 50px rgba(188, 154, 106, 0.32);
}

.home-search-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(188, 154, 106, 0.35);
}

/* Featured events */
.home-featured-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 223, 198, 0.18));
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.home-events-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.home-section-title {
    color: #7a5830;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.home-section-title-icon {
    color: var(--color-primary-500, #d2b48c);
}

.home-section-subtitle {
    color: rgba(44, 62, 80, 0.72);
    margin-bottom: 0;
    font-size: 1rem;
}

.home-event-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: clamp(1.5rem, 1.2vw + 1.2rem, 2.1rem);
    box-shadow: 0 22px 48px rgba(31, 31, 35, 0.12);
    border: 1px solid rgba(210, 180, 140, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-event-card:hover,
.home-event-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(210, 180, 140, 0.55);
    box-shadow: 0 28px 60px rgba(31, 31, 35, 0.16);
}

.home-event-cover {
    margin-bottom: 1.5rem;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.home-event-cover-image {
    width: 100%;
    height: clamp(210px, 32vw, 260px);
    object-fit: cover;
    display: block;
}

.home-event-cover-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
    color: #fff;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.home-event-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.home-event-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.home-event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-event-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    color: #fff;
    gap: 0.4rem;
    background: linear-gradient(135deg, #e4c59c, #bc9a6a);
    box-shadow: 0 8px 16px rgba(188, 154, 106, 0.28);
}

.home-event-badge--featured {
    background: linear-gradient(135deg, #ff7a59, #ff5f6d);
}

.home-event-badge--recent {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.home-event-badge--location {
    background: linear-gradient(135deg, #20c997, #12a291);
}

.home-event-status {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.92rem;
}

.home-event-requirements {
    background: rgba(248, 249, 250, 0.92);
    padding: 1.15rem;
    border-radius: 14px;
    border-left: 4px solid rgba(210, 180, 140, 0.9);
    display: grid;
    gap: 0.5rem;
}

.home-event-section-label {
    color: rgba(73, 80, 87, 0.8);
    font-size: 0.92rem;
    font-weight: 600;
}

.home-event-description {
    color: rgba(43, 52, 61, 0.88);
    line-height: 1.6;
    font-size: 0.98rem;
}

.home-event-requirements-note {
    margin-top: 0.35rem;
    color: rgba(108, 117, 125, 0.9);
    font-size: 0.85rem;
}

.home-event-stats {
    color: rgba(73, 80, 87, 0.88);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-event-button {
    border-radius: 14px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 18px 36px rgba(188, 154, 106, 0.22);
    border: none;
}

.home-event-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(188, 154, 106, 0.3);
    color: #fff;
}

.home-event-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(188, 154, 106, 0.38);
}

/* Recommendations */
.home-recommendations {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.home-recommendation-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 18px 40px rgba(31, 31, 35, 0.1);
    border: 1px solid rgba(233, 236, 239, 0.75);
}

.home-recommendation-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    margin-bottom: 1.1rem;
}

.home-recommendation-icon {
    color: var(--color-primary-500, #d2b48c);
}

.home-page .provider-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.home-provider-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0.3rem;
    border-radius: 12px;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.home-provider-item:hover,
.home-provider-item:focus-visible {
    background-color: rgba(240, 223, 198, 0.26);
    transform: translateX(4px);
    box-shadow: 0 10px 20px rgba(188, 154, 106, 0.2);
}

.home-provider-item:focus-visible {
    outline: none;
}

.home-provider-avatar .avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.home-provider-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bc9a6a;
    font-size: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.home-provider-meta {
    color: rgba(73, 80, 87, 0.75);
    margin-left: 6px;
    font-size: 0.85rem;
}

.home-provider-empty {
    color: rgba(73, 80, 87, 0.7);
    font-size: 0.88rem;
}

.home-provider-link {
    border-radius: 14px;
    font-weight: 600;
    padding: 0.65rem 0.75rem;
    border: 2px solid rgba(188, 154, 106, 0.45);
    color: #7a5830;
    background: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

.home-provider-link:hover {
    background: linear-gradient(135deg, rgba(210, 180, 140, 0.25), rgba(188, 154, 106, 0.4));
    border-color: rgba(188, 154, 106, 0.7);
    color: #fff;
}

.home-provider-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.18rem rgba(188, 154, 106, 0.35);
}

.home-explore-more-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 24px 48px rgba(102, 126, 234, 0.35);
}

.home-explore-more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.45);
    color: #fff;
}

.home-explore-more-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.35);
}

.align-items-center {
    -ms-flex-align: center!important;
    align-items: center !important;
    padding: 10px;
}

.wizard-card .card-header {
    background: transparent;
    border: none;
    padding: 30px;
}

/* 覆蓋 Bootstrap 網格負邊距 */
.row {
    margin-right: 0;
    margin-left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-page .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .home-search-input-group {
        min-width: 100%;
    }

    .home-search-card {
        padding: 1.75rem;
    }

    .home-recommendations {
        margin-bottom: 2rem;
    }

    .home-search-button {
        width: 100%;
    }

    .home-hero-title {
        font-size: 2.4rem;
    }
}

@media (min-width: 768px) {
    .home-featured-section .row {
        align-items: stretch;
    }
}

@media (min-width: 992px) {
    .home-featured-section .row {
        align-items: flex-start;
    }

    .home-recommendations {
        position: sticky;
        top: 6.5rem;
    }
}

@media (max-width: 576px) {
    .home-search-input {
        padding-left: 56px;
        font-size: 1rem;
    }

    .home-event-card {
        padding: 1.4rem;
    }

    .home-event-title {
        font-size: 1.2rem;
    }
}
