/* ==========================================================================
   PINTEREST TODAY (INSPIRASI HARIAN) - LUXURY DASHBOARD UI
   Inspired by id.pinterest.com/today
   ========================================================================== */

.today-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* --------------------------------------------------------------------------
   1. Pinterest Today Header Bar
   -------------------------------------------------------------------------- */
.today-header {
    text-align: center;
    margin: 16px 0 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.today-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

.today-calendar-icon {
    font-size: 18px;
    color: var(--color-primary);
}

.today-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -1px;
    margin: 0 0 10px 0;
}

.today-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. Editorial Featured Hero Grid (Pinterest Today Top Stories)
   -------------------------------------------------------------------------- */
.today-editorial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 992px) {
    .today-editorial-grid {
        grid-template-columns: 1fr;
    }
}

.editorial-card {
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.editorial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

/* Hero Card 1: Greeting & Quotes Template Card (Strict Pinterest Today Light Style) */
.editorial-greeting-card {
    min-height: 440px;
    background: #ffffff;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #1c1c1c;
    border: 1px solid #e2e2e2;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.editorial-greeting-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.greeting-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.badge-greeting {
    background: #f4f4f4;
    border: 1px solid #e2e2e2;
    color: #1c1c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 0;
}

.badge-greeting .material-symbols-outlined {
    color: #f62440;
    font-size: 20px;
}

.greeting-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #666666;
    background: #f4f4f4;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #e2e2e2;
}

.greeting-time-badge .material-symbols-outlined {
    color: #1c1c1c;
    font-size: 16px;
}

.greeting-title {
    font-family: Outfit, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.greeting-subtitle {
    font-family: Outfit, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 15px;
    color: #666666;
    margin: 0 0 24px 0;
    line-height: 1.8;
    max-width: 92%;
}

/* Quotes Template Box (Pinterest Surface #f4f4f4) */
.greeting-quote-box {
    background: #f4f4f4;
    border: 1px solid #e2e2e2;
    border-radius: 24px;
    padding: 26px 30px;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.greeting-quote-box:hover {
    background: #ebebeb;
    border-color: #d1d1d1;
}

.quote-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.quote-icon {
    font-size: 32px;
    color: #f62440;
}

.quote-text {
    font-family: Outfit, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    color: #1c1c1c;
    margin: 0 0 20px 0;
    min-height: 54px;
    transition: opacity 0.25s ease;
}

.quote-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e2e2;
}

.quote-author-wrap {
    display: flex;
    flex-direction: column;
}

.quote-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #1c1c1c;
}

.btn-quote-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #1c1c1c;
    border: 1px solid #1c1c1c;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-quote-refresh:hover {
    background: #f62440;
    color: #ffffff;
    border-color: #f62440;
    transform: translateY(-2px);
}

.btn-quote-refresh .material-symbols-outlined {
    font-size: 17px;
    transition: transform 0.4s ease;
}

.btn-quote-refresh:hover .material-symbols-outlined {
    transform: rotate(180deg);
}

.editorial-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.badge-red {
    background: #ffe4e6;
    color: #e11d48;
    border-color: #fda4af;
}

.editorial-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.editorial-desc {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.editorial-actions {
    display: flex;
    gap: 12px;
}

.btn-editorial-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-editorial-primary:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.03);
}

/* Spotlight Card 2 (Bento Stats & Popups Summary) */
.editorial-spotlight {
    height: 440px;
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px;
}

.editorial-spotlight-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.editorial-title-sm {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    margin: 14px 0 10px 0;
    letter-spacing: -0.4px;
}

.editorial-desc-sm {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.today-stats-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
}

.stat-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-top: 2px;
}

.btn-editorial-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-editorial-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. Pinterest Category Navigation Pills
   -------------------------------------------------------------------------- */
.today-nav-section {
    margin-bottom: 48px;
}

.today-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 6px 0;
    letter-spacing: -0.4px;
}

.today-section-sub {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
}

.today-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.cat-pill .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-primary);
}

.cat-pill:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.cat-pill:hover .material-symbols-outlined {
    color: #ffffff;
}

.pill-highlight {
    background: #fff0f2;
    border-color: #fda4af;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   4. Masonry Daily Feed Section (Pinterest Today Pin Feed)
   -------------------------------------------------------------------------- */
.today-feed-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: var(--color-text);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: #e2e8f0;
    color: var(--color-primary);
}

/* Authentic Pinterest Masonry Grid */
.today-masonry-grid {
    column-count: 4;
    column-gap: 24px;
    width: 100%;
}

@media (max-width: 1400px) {
    .today-masonry-grid { column-count: 3; }
}
@media (max-width: 992px) {
    .today-masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .today-masonry-grid { column-count: 1; }
}

/* Pinterest Pin Card Structure */
.pin-card {
    break-inside: avoid;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pin-img-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease;
}

.pin-card:hover .pin-img-container {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.pin-img {
    width: 100%;
    height: auto;
    min-height: 180px;
    display: block;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-card:hover .pin-img {
    transform: scale(1.03);
}

/* Hover Overlay Exactly Like Pinterest Gallery */
.pin-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    z-index: 2;
}

.pin-card:hover .pin-hover-overlay {
    opacity: 1;
}

/* Top Bar: Status Pill Left + Action Pill Right */
.pin-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pin-board-badge {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pin-btn-edit {
    color: #ffffff;
    background: var(--color-primary);
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pin-btn-edit:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Bottom Bar: Link Pill Left + Delete Right */
.pin-overlay-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pin-btn-link {
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.pin-btn-link:hover {
    background: #ffffff;
    transform: scale(1.03);
}

.pin-actions-right {
    display: flex;
    gap: 6px;
}

.pin-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pin-btn-circle:hover {
    background: #ffffff;
    transform: scale(1.08);
}

/* Caption Below Pin Image */
.pin-caption {
    padding: 10px 4px 0 4px;
}

.pin-title {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 4px 0;
    line-height: 1.35;
    word-break: break-word;
}

.pin-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #767676;
    margin: 0;
}

/* Empty State */
.today-empty {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px dashed var(--color-border-subtle);
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
}
