/* ═══ Home Specific Styles ═══ */

.home-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
}

.greeting {
    display: flex;
    flex-direction: column;
}

.greeting-hello {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.greeting-name {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    letter-spacing: -0.02em;
}

.notification-btn {
    position: relative;
    background: var(--surface-color);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-pill);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-snappy);
    color: var(--text-primary);
}

.notification-btn:hover { border-color: var(--border-dark); }

.notification-btn.has-notification::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 14px;
    width: 3.75px;
    height: 3.75px;
    background-color: #ef4444;
    border: 2px solid var(--surface-color);
    border-radius: 50%;
}

.home-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.empty-state {
    background: var(--surface-color);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-card);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    transition: var(--transition-snappy);
}

.empty-state:hover { border-color: var(--border-dark); border-style: solid; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.quick-card {
    background: var(--surface-color);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: var(--transition-snappy);
}

.quick-card:hover { border-color: var(--border-dark); }

.quick-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid var(--text-primary);
}

/* Notification Panel */
.notification-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.notification-backdrop.active { opacity: 1; pointer-events: auto; }

.notification-panel {
    position: fixed;
    top: 0; right: 0;
    transform: translateX(100%);
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--surface-color);
    border-left: 2px solid var(--border-dark);
    z-index: 1002;
    transition: transform 0.4s cubic-bezier(0.25, 1.2, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.notification-panel.active { transform: translateX(0); }

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 2px solid var(--border-light);
}

.notification-panel-body { padding: var(--space-lg); flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.notification-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light, #e0e0e0);
    border-top-color: #000;
    border-radius: 50%;
    animation: notifSpin 0.7s linear infinite;
}

@keyframes notifSpin {
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) { .home-container { padding-top: 60px; } }

/* ═══ Home Tools Section ═══ */
.home-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid #000;
    border-radius: 16px;
    padding: 16px;
    color: inherit;
    background: white;
    margin-top: 10px;
    flex-direction: column;
    -webkit-user-select: none;
    user-select: none;
}

.home-tool-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* collapsed description — hidden by default */
.home-tool-desc-collapsed {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.28s ease, margin-top 0.2s ease;
    opacity: 0;
    margin-top: 0;
    width: 100%;
}

.home-tool-desc-collapsed.open {
    max-height: 80px;
    opacity: 1;
    margin-top: 8px;
}

.tool-chevron-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.tool-chevron-btn:active {
    transform: scale(0.85);
}

.home-tool-open-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    background: #000;
    color: #fff;
    border-radius: 10px;
    padding: 8px 16px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.1s ease;
    display: inline-block;
}

.home-tool-open-btn:active {
    transform: scale(0.92);
}

/* ── Pinned card OPEN button tap animation ── */
.pinned-card button:active {
    transform: scale(0.9) !important;
    transition: transform 0.08s ease !important;
}

.home-tools-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 4px;
    letter-spacing: 0.03em;
}

