/* =========================================================
   APP NOTES
   ========================================================= */

.app-notes-page {
    max-width: var(--ti-max-width, 1200px);
    margin: 0 auto;
    padding: 0 20px 90px;
}

/* FILTERS */
.app-notes-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--ti-border-light, #e0e0e0);
}

.app-filter {
    border: 1px solid #d0d0d0;
    background: #ffffff;
    color: var(--ti-text-main, #222222);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.app-filter:hover {
    background: #f5f5f5;
    border-color: #999999;
}

.app-filter.active {
    background: var(--ti-red, #CC0000);
    color: #ffffff;
    border-color: var(--ti-red, #CC0000);
    box-shadow: 0 2px 6px rgba(204, 0, 0, 0.25);
}

/* COUNT */
.app-notes-count {
    margin: 20px 0 24px;
    color: var(--ti-text-light, #767676);
    font-size: 13px;
    font-weight: 700;
}

/* GRID */
.app-notes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* CARD */
.app-note-card {
    position: relative;
    border: 1px solid var(--ti-border-card, #e5e5e5);
    border-radius: 6px;
    padding: 24px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cfcfcf;
}

/* META TAGS */
.app-note-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.app-note-tag {
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    display: inline-block;
    border: none;
}

.app-note-tag:focus-visible {
    outline: 2px solid var(--ti-red, #CC0000);
    outline-offset: 1px;
}

.app-note-family {
    background: #eef2f5;
    color: #222222;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.app-note-family:hover {
    background: #d8e2e8;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.app-note-category {
    background: #fff0f0;
    color: var(--ti-red, #CC0000);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.app-note-category:hover {
    background: #ffe0e0;
    color: var(--ti-red-dark, #A30000);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.12);
}

.app-note-featured {
    background: #fff8e1;
    color: #b78103;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.8px;
    margin-left: auto;
}

/* TITLE */
.app-note-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: normal;
}

.app-note-card h2 a {
    color: var(--ti-black, #111111);
    text-decoration: none;
    transition: color 0.15s ease;
}

.app-note-card h2 a:hover {
    color: var(--ti-link-blue, #006272);
    text-decoration: underline;
}

/* DESCRIPTION */
.app-note-card p {
    margin: 0 0 18px;
    color: var(--ti-text-muted, #555555);
    font-size: 14.5px;
    line-height: 1.55;
    flex: 1;
}

/* CARD FOOTER */
.app-note-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.app-note-type {
    color: var(--ti-text-light, #767676);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.app-note-card a:not(.blog-read-btn) {
    color: var(--ti-black, #111111);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.app-note-card a:not(.blog-read-btn):hover {
    color: var(--ti-link-blue, #006272);
    text-decoration: underline;
}

.app-note-card .blog-read-btn {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
}

.app-note-card .blog-read-btn span {
    color: #ffffff !important;
}

.app-note-card .blog-read-btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* DISCLAIMER */
.app-notes-disclaimer {
    max-width: 820px;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--ti-border-light, #e0e0e0);
    color: var(--ti-text-muted, #555555);
    font-size: 13.5px;
    line-height: 1.6;
}

.app-notes-disclaimer strong {
    color: var(--ti-text-main, #222222);
}

.app-notes-disclaimer p {
    margin: 6px 0 0;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .app-notes-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 620px) {

    .app-notes-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .app-notes-intro {
        padding-top: 50px;
    }

    .app-notes-grid {
        grid-template-columns: 1fr;
    }

    .app-note-card {
        min-height: 0;
    }

    .app-note-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
}
