/* Intents Module Style */

#view-intents {
    background: var(--bg);
}

.intents-header {
    margin-bottom: 30px;
}

.intents-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.intents-header p {
    color: var(--muted);
    font-size: 15px;
}

.intents-tracker-section {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.intents-tracker-section h2 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Folders Grid */
.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.folder-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.1s ease-out;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.folder-card:hover {
    border-color: var(--accent);
    background: #f9fafb;
    /* Very subtle grey tint */
}

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

.folder-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    padding-right: 24px;
    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.folder-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    opacity: 0;
    /* Hidden unless hover */
}

.folder-card:hover .folder-delete-btn {
    opacity: 1;
}

.folder-delete-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.folder-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: auto;
    /* Pushes footer down */
    margin-top: 4px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.meta-item:not(:last-child):after {
    content: "•";
    margin-left: 8px;
    opacity: 0.5;
}

.folder-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.match-indicator {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-indicator.has-matches {
    color: var(--accent);
}

.match-indicator .count-num {
    font-size: 15px;
    font-weight: 800;
}

.match-indicator.has-matches:before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

/* Feed Meta for Intent Matches */
.intents-match-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(22, 163, 74, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    width: fit-content;
    margin: 0 16px 10px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}