:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #757575;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --border-color: #f0f0f0;
    --accent-color: #7c4dff;
    --input-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
}

.sydney-time-pill {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 100px;
    display: none;
    /* Hide by default */
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    /* Reduced shadow intensity */
    z-index: 1000;
    cursor: default;
}

.home-page .sydney-time-pill {
    display: flex;
}

.sydney-time-pill .flag {
    font-size: 18px;
    line-height: 1;
}

.main-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

/* Header */
/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.profile-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Search Bar */
.search-container {
    background: var(--input-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 140px;
    /* Greatly reduced height */
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    position: relative;
}

.search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    width: 100%;
}

.dropdown-trigger {
    background: #f8f8f8;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    margin-right: 15px;
    transition: background 0.2s;
}

.dropdown-trigger:hover {
    background: #f0f0f0;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 18px;
    background: transparent;
    padding: 0;
    margin-top: 5px;
    z-index: 2;
    cursor: context-menu;
    font-family: inherit;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin-top: 12px;
    padding: 8px;
    z-index: 100;
    display: none;
    /* Hidden by default */
    transform-origin: top;
    animation: slideDown 0.2s ease-out;
}

.suggestions-dropdown.show {
    display: block;
}

.suggestion-item {
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.1s;
    color: var(--text-primary);
    font-size: 15px;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-icon {
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-input::placeholder {
    color: #999;
    opacity: 0.8;
    font-weight: 400;
}

.glass-send-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.glass-send-btn:hover {
    transform: scale(1.1);
}

.glass-send-btn:active {
    transform: scale(0.95);
}

.glass-orb {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #ff4d00, #ff6a00, #ff8c00);
}

.glass-frost {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.glass-highlight {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 40%;
    border-radius: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    filter: blur(2px);
}

.glass-glow {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.glass-edge {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.glass-icon {
    position: relative;
    z-index: 10;
    color: white;
    width: 20px;
    height: 20px;
    margin-right: -2px;
    /* Visual optical adjustment for send icon */
    margin-top: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.search-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    z-index: 2;
    align-items: center;
    /* Ensure vertical centering */
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 25px;
    scrollbar-width: none;
    /* Hide scrollbar */
}

.quick-actions::-webkit-scrollbar {
    display: none;
}

.pill-btn {
    background: #f8f8f8;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}

.pill-btn:hover {
    background: #eee;
}

.pill-btn svg {
    opacity: 0.7;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

/* Weather Card */
.weather-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

#location-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
    margin-right: 5px;
}

.weather-icon-container {
    margin-left: auto;
    color: #666;
}

.weather-icon-container svg {
    width: 32px;
    height: 32px;
}

.weather-body {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 20px;
}

.temperature {
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -2px;
}



/* Context Card */
.context-card {
    position: relative;
}

.context-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.badge-new {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 12px;
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.context-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.context-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.4;
}

/* HotPush Card Branding */
.hotpush-card {
    border: 1px solid rgba(255, 94, 0, 0.2);
    background: linear-gradient(165deg, #fff 0%, #fffbf9 100%);
    box-shadow: 0 8px 30px rgba(255, 94, 0, 0.08);
    transition: all 0.3s ease;
}

.hotpush-card:hover {
    box-shadow: 0 10px 40px rgba(255, 94, 0, 0.12);
    border-color: rgba(255, 94, 0, 0.3);
    transform: translateY(-2px);
}

.hotpush-card h3 {
    color: #ff5e00;
}

.hotpush-card .badge-new {
    background: rgba(255, 94, 0, 0.1);
    color: #ff5e00;
}

.hotpush-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
    /* gap-1.5 equivalent approx */
    margin-top: -3px;
    object-fit: contain;
}

.hotpush-wordmark {
    font-weight: 900;
    font-style: italic;
    color: #ff5e00;
    letter-spacing: -0.05em;
    /* tracking-tighter */
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

/* Recent Chats */
.recent-chats-section {
    margin-top: 20px;
}

.recent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.recent-header svg {
    color: #777;
}

.chats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.chat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.chat-icon {
    margin-bottom: 12px;
    color: #777;
}

.chat-card h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.chat-time {
    font-size: 12px;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .sydney-time-pill {
        top: 16px;
        right: 16px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .main-container {
        padding: 0 16px;
    }

    .header h1 {
        font-size: 26px;
    }

    .header p {
        font-size: 16px;
    }

    .search-container {
        height: auto;
        min-height: 120px;
        padding: 16px;
        margin-bottom: 24px;
        border-radius: 20px;
    }

    .search-input {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 12px;
    }

    .search-footer {
        margin-top: auto;
        gap: 10px;
    }

    .dropdown-trigger {
        padding: 6px 10px;
        font-size: 13px;
        gap: 6px;
        margin-right: 0;
        flex-shrink: 1;
        min-width: 0;
    }

    .dropdown-trigger span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-img {
        width: 24px;
        height: 24px;
    }

    .glass-send-btn {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .chats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .suggestion-item {
        padding: 16px;
        font-size: 14px;
    }
}

/* Related Section UI Update */
.related-section {
    margin-top: 60px;
    border-top: none;
    padding-top: 0;
}

.related-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.related-list {
    display: flex;
    flex-direction: column;
}

.related-item {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s, padding-left 0.2s;
    position: relative;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    padding-left: 8px;
    color: #ff5e00;
}

.related-arrow {
    font-size: 18px;
    margin-right: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.related-item span {
    font-size: 16px;
    font-weight: 400;
}

/* Nav Back Button */
.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-back:hover {
    color: var(--text-primary);
}

/* ChatGPT-style Citation and Sources */
.citation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #555;
    font-size: 10px;
    font-weight: 600;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    text-decoration: none;
    margin-left: 2px;
    vertical-align: super;
    transition: background 0.2s, color 0.2s;
}

.citation:hover {
    background: var(--accent-color);
    color: white;
}

.sources-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.source-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f7f7f8;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    transition: background 0.2s;
}

.source-pill:hover {
    background: #efeff1;
}

.source-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}