/* index.css - Home Page Specific Styles */

/* Header */
.header {
    background: white;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.location {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    gap: 4px;
}

.location i:first-child {
    color: var(--text-main);
}

.location i.fa-chevron-down {
    font-size: 10px;
    color: var(--text-light);
}

.weather {
    margin-left: 8px;
    font-weight: normal;
    color: var(--text-sub);
}

.search-bar {
    display: flex;
    align-items: center;
    background: #F2F3F5;
    border-radius: 20px;
    padding: 8px 16px;
    gap: 8px;
}

.search-bar i {
    color: var(--text-light);
}

.search-bar input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
}

.header-actions {
    position: absolute;
    right: 16px;
    top: 12px;
    display: flex;
    gap: 16px;
    font-size: 20px;
    color: var(--text-main);
}

.msg-icon {
    position: relative;
}

.msg-icon .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid white;
}

/* Banner */
.banner-section {
    padding: 0 12px;
    margin-top: 8px;
}

.banner {
    background: linear-gradient(135deg, #007AFF, #00C6FF);
    border-radius: 16px;
    height: 160px;
    position: relative;
    padding: 24px;
    color: white;
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner-content h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.banner-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.cta-btn {
    background: #FFD666;
    color: #873800;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.dot.active {
    background: white;
    width: 12px;
    border-radius: 3px;
}

/* Quick Menu */
.quick-menu {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 20px 12px;
    gap: 16px 8px;
    background: white;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    position: relative;
}

.icon-wrapper.blue { background: #E6F7FF; color: #1890FF; }
.icon-wrapper.red { background: #FFF1F0; color: #F5222D; }
.icon-wrapper.orange { background: #FFF7E6; color: #FA8C16; }
.icon-wrapper.green { background: #F6FFED; color: #52C41A; }
.icon-wrapper.cyan { background: #E6FFFA; color: #13C2C2; }
.icon-wrapper.orange-dark { background: #FFFBE6; color: #FAAD14; }
.icon-wrapper.purple { background: #F9F0FF; color: #722ED1; }
.icon-wrapper.blue-light { background: #F0F5FF; color: #2F54EB; }
.icon-wrapper.pink { background: #FFF0F6; color: #EB2F96; }
.icon-wrapper.gray { background: #F5F5F5; color: #8C8C8C; }

.menu-item span {
    font-size: 11px;
    color: var(--text-main);
}

.icon-wrapper .tag {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 4px;
    color: white;
    background: var(--primary-color);
}

.icon-wrapper .tag.red {
    background: var(--accent-red);
}

/* Notice Bar */
.notice-bar {
    background: white;
    margin: 8px 12px;
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.notice-tag {
    color: var(--primary-color);
    font-weight: bold;
}

.notice-status {
    background: #FFF1F0;
    color: #F5222D;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 10px;
}

.notice-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-sub);
}

.notice-more {
    color: var(--text-light);
}

/* Promo Grid */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px 16px;
}

.promo-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-card h3 {
    font-size: 14px;
    margin-bottom: 2px;
}

.promo-card p {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.promo-btn {
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 10px;
}

.promo-btn.orange { background: #FA8C16; }
.promo-btn.purple { background: #722ED1; }
.promo-btn.green { background: #52C41A; }

.promo-card img {
    width: 40px;
    height: 40px;
}

/* Flash Sale */
.flash-sale {
    background: white;
    margin: 0 12px 16px;
    border-radius: 16px;
    padding: 16px;
}

.sale-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.sale-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-red);
}

.sale-time {
    font-size: 11px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}

.timer {
    background: #F5222D;
    color: white;
    padding: 1px 3px;
    border-radius: 3px;
}

.invite-box {
    text-align: right;
}

.invite-box p {
    font-size: 11px;
}

.invite-box span {
    color: #FA8C16;
}

.invite-btn {
    background: #FFF1F0;
    color: #F5222D;
    border: none;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

.sale-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.prod-item {
    text-align: center;
}

.prod-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 6px;
    object-fit: cover;
}

.prod-name {
    font-size: 11px;
    margin-bottom: 2px;
}

.prod-price {
    font-size: 12px;
    color: var(--accent-red);
    font-weight: bold;
}

.prod-price span {
    font-size: 10px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: normal;
}

/* Technicians Section */
.technicians-section {
    padding: 0 12px 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header .title {
    font-size: 16px;
    font-weight: bold;
}

.section-header .title span {
    font-size: 11px;
    color: var(--text-light);
    font-weight: normal;
    margin-left: 8px;
}

.section-header .more {
    font-size: 12px;
    color: var(--text-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tech-card {
    background: white;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.tech-info h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

.tech-info .tag {
    font-size: 9px;
    background: #E6F7FF;
    color: #1890FF;
    padding: 1px 4px;
    border-radius: 4px;
}

.tech-info .tag.green { background: #F6FFED; color: #52C41A; }
.tech-info .tag.orange { background: #FFF7E6; color: #FA8C16; }
.tech-info .tag.purple { background: #F9F0FF; color: #722ED1; }

.stats {
    font-size: 9px;
    color: var(--text-light);
    margin-top: 4px;
}

.rating { color: #FAAD14; margin-right: 4px; }

.order-btn {
    margin-top: 8px;
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 10px;
    padding: 4px 0;
    border-radius: 10px;
}

/* Nearby Services */
.nearby-services {
    background: white;
    margin-bottom: 16px;
    padding: 16px 12px;
}

.service-tabs {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.service-tabs::-webkit-scrollbar { display: none; }

.tab {
    font-size: 13px;
    color: var(--text-sub);
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 14px;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.service-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.service-img {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.service-details {
    flex: 1;
}

.service-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.service-details .tags {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.service-details .tags span {
    font-size: 9px;
    color: var(--primary-color);
    background: #E6F7FF;
    padding: 1px 4px;
    border-radius: 2px;
}

.service-details .meta {
    font-size: 11px;
    color: var(--text-light);
}

.service-details .price {
    font-size: 16px;
    color: var(--accent-red);
    font-weight: bold;
}

.service-details .price span {
    font-size: 11px;
    font-weight: normal;
}

.book-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
}

.view-more {
    text-align: center;
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 8px;
}

/* Forum & Task */
.forum-task-split {
    padding: 0 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forum-part, .task-part {
    background: white;
    border-radius: 16px;
    padding: 16px;
}

.forum-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.forum-tabs .tab {
    padding: 0;
    background: none;
    color: var(--text-light);
}

.forum-tabs .tab.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
}

.forum-post .user-info {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.forum-post .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.forum-post h5 {
    font-size: 13px;
}

.forum-post .tag {
    font-size: 9px;
    padding: 0 4px;
    border-radius: 2px;
}

.tag.gold { background: #FFF7E6; color: #FA8C16; border: 1px solid #FAAD14; }
.tag.helper { background: #E6F7FF; color: #1890FF; border: 1px solid #91D5FF; }

.forum-post .time {
    font-size: 10px;
    color: var(--text-light);
}

.post-content {
    font-size: 13px;
    margin-bottom: 10px;
}

.post-media {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin: 8px 0;
    object-fit: cover;
}

.post-actions {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-sub);
}

/* Tasks */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.task-icon.orange { background: #FFF7E6; color: #FA8C16; }
.task-icon.yellow { background: #FFFBE6; color: #FAAD14; }
.task-icon.purple { background: #F9F0FF; color: #722ED1; }
.task-icon.yellow-dark { background: #FFF7E6; color: #D48806; }

.task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.task-info span:first-child {
    font-size: 13px;
}

.reward {
    font-size: 11px;
    color: #FA8C16;
}

.task-btn {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 12px;
}

/* Sticky Login */
.sticky-login {
    background: white;
    margin: 0 12px 16px;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.login-msg {
    display: flex;
    gap: 12px;
}

.login-msg img {
    width: 36px;
    height: 36px;
}

.login-msg strong {
    font-size: 14px;
    display: block;
}

.login-msg p {
    font-size: 11px;
    color: var(--text-light);
}

.login-btn {
    background: linear-gradient(90deg, #FF7A45, #FF4D4F);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}
