/* =============================================
   استایل‌های صفحه روزمرگی (Journal)
   ============================================= */

.daily-page {
    padding: 30px 0 60px;
    background: #faf8f5;
}

/* ====== برادکرمب ====== */
.breadcrumb-simple {
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.breadcrumb-simple .breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.9rem;
}

.breadcrumb-simple .breadcrumb-item a {
    color: #0d6efd !important;
    text-decoration: none;
}

.breadcrumb-simple .breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-simple .breadcrumb-item.active {
    color: #6c757d !important;
}

/* ====== هدر روزمرگی ====== */
.daily-header {
    background: linear-gradient(135deg, #2d3436, #636e72);
    border-radius: 20px;
    padding: 40px 45px;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.daily-header .daily-header-content {
    position: relative;
    z-index: 2;
}

.daily-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.daily-header h1 i {
    margin-left: 10px;
}

.daily-header p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 550px;
    margin-bottom: 0;
    font-weight: 300;
}

.daily-header .header-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.06;
}

.daily-header .header-decoration.d1 {
    width: 300px;
    height: 300px;
    background: #fff;
    top: -80px;
    left: -60px;
}

.daily-header .header-decoration.d2 {
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.3);
    bottom: -40px;
    right: 10%;
}

/* ====== کارت یادداشت جذاب ====== */
.note-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0d6efd, #7b61ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.note-card:hover::before {
    opacity: 1;
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: #e8e8e8;
}

.note-card .note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.note-card .note-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #f0f0f0;
}

.note-card .note-date i {
    font-size: 0.85rem;
    color: #0d6efd;
}

.note-card .note-tag {
    padding: 3px 14px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #f1f3f5;
    color: #4a4a4a;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.note-card .note-tag.life {
    background: #e3f2fd;
    color: #0d6efd;
    border-color: #bbdefb;
}

.note-card .note-tag.school {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffe0b2;
}

.note-card .note-tag.movie {
    background: #f3e5f5;
    color: #6f42c1;
    border-color: #e1bee7;
}

.note-card .note-tag.food {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.note-card .note-tag.city {
    background: #e0f7fa;
    color: #00838f;
    border-color: #b2ebf2;
}

.note-card .note-tag.thinking {
    background: #fce4ec;
    color: #c62828;
    border-color: #f8bbd0;
}

.note-card .note-tag.night {
    background: #e8eaf6;
    color: #283593;
    border-color: #c5cae9;
}

.note-card .note-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.note-card .note-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #2d2d2d;
}

.note-card .note-body p {
    margin-bottom: 6px;
}

.note-card .note-body .quote {
    background: linear-gradient(135deg, #f8f9fa, #f1f3f5);
    border-right: 4px solid #0d6efd;
    padding: 12px 20px;
    border-radius: 10px;
    font-style: italic;
    color: #1a1a2e;
    margin: 10px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.note-card .note-body .emoji-line {
    font-size: 1.4rem;
    letter-spacing: 6px;
    margin: 8px 0 4px;
    padding: 6px 0;
    border-top: 1px dashed #f0f0f0;
}

.note-card .note-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.note-card .note-actions {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: #6c757d;
}

.note-card .note-actions span {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: default;
    transition: all 0.3s ease;
}

.note-card .note-actions span:hover {
    color: #0d6efd;
}

.note-card .note-actions i {
    font-size: 0.9rem;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.note-card .note-actions .bi-heart-fill {
    color: #dc3545;
    animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.note-card .note-actions span:hover .bi-heart-fill {
    animation: none;
    transform: scale(1.3);
}

/* ====== دکمه شناور بازگشت ====== */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: none;
    background: linear-gradient(135deg, #0d6efd, #7b61ff);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    box-shadow: 0 5px 25px rgba(13, 110, 253, 0.4);
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#backToTopBtn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.5);
}

/* ====== پیجینیشن مدرن ====== */
.pagination-wrapper {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pagination-modern {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-modern .page-item {
    display: inline-block;
}

.pagination-modern .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.pagination-modern .page-link:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd, #7b61ff);
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.25);
}

.pagination-modern .page-item.active .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(13, 110, 253, 0.35);
}

.pagination-modern .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-modern .page-link i {
    font-size: 1rem;
}

.pagination-info {
    font-size: 0.8rem;
    color: #6c757d;
    background: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* ====== ریسپانسیو ====== */
@media (max-width: 768px) {
    .daily-header {
        padding: 25px 20px;
        text-align: center;
    }

    .daily-header h1 {
        font-size: 1.4rem;
    }

    .daily-header p {
        font-size: 0.9rem;
    }

    .daily-header .header-decoration {
        display: none;
    }

    .note-card {
        padding: 16px 18px;
    }

    .note-card .note-title {
        font-size: 1rem;
    }

    .note-card .note-body {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .note-card .note-body .quote {
        font-size: 0.82rem;
        padding: 10px 16px;
    }

    .note-card .note-body .emoji-line {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .note-card .note-date {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .note-card .note-tag {
        font-size: 0.6rem;
        padding: 2px 10px;
    }

    #backToTopBtn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .daily-header h1 {
        font-size: 1.2rem;
    }

    .note-card {
        padding: 14px 14px;
    }

    .note-card .note-title {
        font-size: 0.92rem;
    }

    .note-card .note-body {
        font-size: 0.82rem;
    }

    .note-card .note-body .quote {
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    .note-card .note-body .emoji-line {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .note-card .note-actions {
        font-size: 0.7rem;
        gap: 12px;
    }

    .note-card .note-header .note-date {
        font-size: 0.65rem;
    }

    .note-card .note-header .note-tag {
        font-size: 0.55rem;
        padding: 2px 8px;
    }

    .pagination-modern .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .pagination-modern {
        gap: 4px;
    }

    .pagination-info {
        font-size: 0.7rem;
        padding: 4px 14px;
    }

    .pagination-wrapper {
        margin-top: 25px;
        gap: 10px;
    }
}