
:root {
    --coffee-primary: #6F4E37;
    --coffee-secondary: #A67B5B;
    --coffee-accent: #D4A574;
    --coffee-dark: #3C2415;
    --coffee-light: #F5E6D3;
    --coffee-cream: #FFF8F0;
    --gradient-warm: linear-gradient(135deg, #6F4E37 0%, #A67B5B 100%);
}

body {
    background: var(--coffee-cream);
}

/* Hero Section */
.hero-blog {
    background: var(--gradient-warm);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

    .hero-blog::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 500px;
        height: 500px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
    }

    .hero-blog::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 400px;
        height: 400px;
        background: rgba(255,255,255,0.03);
        border-radius: 50%;
    }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Pills */
.blog-nav {
    background: white;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(107, 78, 55, 0.15);
    margin-top: -30px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.nav-pills-custom .nav-link {
    border-radius: 30px;
    padding: 12px 25px;
    color: var(--coffee-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px;
}

    .nav-pills-custom .nav-link.active {
        background: var(--gradient-warm);
        color: white;
        box-shadow: 0 5px 20px rgba(111, 78, 55, 0.3);
        transform: translateY(-2px);
    }

    .nav-pills-custom .nav-link:hover {
        transform: translateY(-2px);
    }

/* Article Cards */
.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .article-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(111, 78, 55, 0.2);
    }

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

    .card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.article-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--coffee-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-body-custom {
    padding: 25px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--coffee-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-text {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #999;
    font-size: 0.85rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.keyword-tag {
    background: var(--coffee-light);
    color: var(--coffee-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .keyword-tag:hover {
        background: var(--coffee-accent);
        color: white;
    }

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .section-title h2 {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--coffee-dark);
        position: relative;
        display: inline-block;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--gradient-warm);
            border-radius: 2px;
        }

    .section-title .accent-text {
        color: var(--coffee-accent);
    }

/* Search Section */
.search-box {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
}

.search-input {
    border: none;
    padding: 15px 20px;
    flex: 1;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-btn {
    background: var(--gradient-warm);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        box-shadow: 0 5px 20px rgba(111, 78, 55, 0.3);
        transform: translateY(-2px);
    }

/* Pagination */
.pagination-custom .page-link {
    background: white;
    border: 2px solid transparent;
    color: var(--coffee-dark);
    padding: 12px 20px;
    margin: 0 5px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-custom .page-item.active .page-link {
    background: var(--gradient-warm);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(111, 78, 55, 0.3);
}

.pagination-custom .page-link:hover {
    background: var(--coffee-light);
    border-color: var(--coffee-accent);
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter-section {
    background: var(--gradient-warm);
    border-radius: 30px;
    padding: 60px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

    .newsletter-section::before {
        content: '☕';
        position: absolute;
        font-size: 200px;
        opacity: 0.1;
        right: -30px;
        bottom: -50px;
    }

.newsletter-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.newsletter-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: white;
    outline: none;
    transition: all 0.3s ease;
    z-index: 10;
}

    .newsletter-input::placeholder {
        color: rgba(255,255,255,0.7);
    }

    .newsletter-input:focus {
        border-color: white;
        background: rgba(255,255,255,0.2);
    }

.newsletter-btn {
    background: white;
    color: var(--coffee-dark);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .newsletter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

/* singleBlog.css - استایل‌های اختصاصی صفحه مقاله */

/* Breadcrumb مدرن */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--coffee-cream, #FFF8F0) 0%, var(--coffee-light, #F5E6D3) 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

    .breadcrumb-section::before {
        content: '☕';
        position: absolute;
        font-size: 150px;
        opacity: 0.05;
        left: -30px;
        top: -50px;
        transform: rotate(-15deg);
    }

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item-custom {
    display: flex;
    align-items: center;
    color: var(--coffee-secondary, #A67B5B);
    font-weight: 500;
    font-size: 0.95rem;
}

    .breadcrumb-item-custom a {
        color: var(--coffee-secondary, #A67B5B);
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 5px 10px;
        border-radius: 20px;
    }

        .breadcrumb-item-custom a:hover {
            background: rgba(111, 78, 55, 0.1);
            color: var(--coffee-primary, #6F4E37);
        }

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--coffee-accent, #D4A574);
    font-size: 0.8rem;
}

.article-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--coffee-dark, #3C2415);
    margin-top: 20px;
    line-height: 1.4;
}

/* Article Hero Image */
.article-hero {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(111, 78, 55, 0.2);
    margin: 30px 0;
}

    .article-hero img {
        width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .article-hero:hover img {
        transform: scale(1.02);
    }

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(60, 36, 21, 0.9), transparent);
    padding: 40px 30px 30px;
    color: white;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

    .article-meta-item i {
        font-size: 1rem;
    }

/* Article Content */
.article-content-wrapper {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
    line-height: 2.2;
    font-size: 1.1rem;
    color: #444;
}

    .article-content-wrapper h1,
    .article-content-wrapper h2,
    .article-content-wrapper h3 {
        color: var(--coffee-dark, #3C2415);
        margin-top: 40px;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .article-content-wrapper h2 {
        font-size: 1.8rem;
        border-right: 4px solid var(--coffee-accent, #D4A574);
        padding-right: 15px;
    }

    .article-content-wrapper h3 {
        font-size: 1.4rem;
    }

    .article-content-wrapper p {
        margin-bottom: 20px;
        text-align: justify;
    }

    .article-content-wrapper img {
        max-width: 100%;
        border-radius: 20px;
        margin: 20px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .article-content-wrapper blockquote {
        background: linear-gradient(135deg, var(--coffee-cream, #FFF8F0), white);
        border-right: 5px solid var(--coffee-accent, #D4A574);
        padding: 25px 30px;
        border-radius: 15px;
        margin: 30px 0;
        font-style: italic;
        color: var(--coffee-dark, #3C2415);
        font-size: 1.1rem;
    }

    .article-content-wrapper a {
        color: var(--coffee-primary, #6F4E37);
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: all 0.3s ease;
    }

        .article-content-wrapper a:hover {
            color: var(--coffee-accent, #D4A574);
        }

/* Short Description */
.article-short-desc {
    background: linear-gradient(135deg, var(--coffee-cream, #FFF8F0), white);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    font-size: 1.2rem;
    color: var(--coffee-dark, #3C2415);
    line-height: 2;
    text-align: center;
    border: 2px dashed var(--coffee-accent, #D4A574);
}

/* Keywords Section */
.keywords-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px 0;
}

.keyword-badge {
    background: var(--coffee-light, #F5E6D3);
    color: var(--coffee-dark, #3C2415);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
    border: 2px solid transparent;
}

    .keyword-badge:hover {
        background: var(--coffee-accent, #D4A574);
        color: white;
        border-color: var(--coffee-primary, #6F4E37);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(111, 78, 55, 0.2);
    }

/* Like Section */
.like-section {
    background: white;
    border-radius: 50px;
    padding: 20px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    transition: all 0.3s ease;
}

    .like-section:hover {
        box-shadow: 0 15px 40px rgba(111, 78, 55, 0.15);
    }

.like-count {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--coffee-dark, #3C2415);
    font-weight: 600;
}

    .like-count i {
        font-size: 1.3rem;
    }

.like-button {
    background: transparent;
    border: 2px solid var(--coffee-accent, #D4A574);
    color: var(--coffee-dark, #3C2415);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

    .like-button:hover {
        background: var(--coffee-accent, #D4A574);
        color: white;
        border-color: var(--coffee-primary, #6F4E37);
        transform: translateY(-2px);
    }

    .like-button.liked {
        background: var(--coffee-accent, #D4A574);
        color: white;
        border-color: var(--coffee-primary, #6F4E37);
        animation: likeAnimation 0.6s ease;
    }

@@keyframes likeAnimation {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin: 40px 0;
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--coffee-dark, #3C2415);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .comments-title::after {
        content: '';
        flex: 1;
        height: 2px;
        background: linear-gradient(to left, var(--coffee-accent, #D4A574), transparent);
        margin-right: 20px;
    }

.comment-form {
    background: var(--coffee-cream, #FFF8F0);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-floating-custom {
    margin-bottom: 15px;
}

    .form-floating-custom input,
    .form-floating-custom textarea {
        border: 2px solid transparent;
        border-radius: 15px;
        padding: 15px;
        background: white;
        transition: all 0.3s ease;
        width: 100%;
    }

        .form-floating-custom input:focus,
        .form-floating-custom textarea:focus {
            border-color: var(--coffee-accent, #D4A574);
            box-shadow: 0 5px 15px rgba(111, 78, 55, 0.1);
            outline: none;
        }

    .form-floating-custom label {
        color: var(--coffee-secondary, #A67B5B);
        font-weight: 500;
        margin-bottom: 8px;
        display: block;
    }

.submit-comment-btn {
    background: var(--gradient-warm, linear-gradient(135deg, #6F4E37 0%, #A67B5B 100%));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

    .submit-comment-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(111, 78, 55, 0.3);
    }

.login-prompt {
    text-align: center;
    padding: 40px;
    background: var(--coffee-cream, #FFF8F0);
    border-radius: 20px;
    color: var(--coffee-dark, #3C2415);
}

    .login-prompt a {
        color: var(--coffee-primary, #6F4E37);
        font-weight: 700;
        text-decoration: none;
        border-bottom: 2px solid var(--coffee-accent, #D4A574);
        padding-bottom: 3px;
        transition: all 0.3s ease;
    }

        .login-prompt a:hover {
            color: var(--coffee-accent, #D4A574);
            border-bottom-color: var(--coffee-primary, #6F4E37);
        }

.comments-list {
    list-style: none;
    padding: 0;
}

.comment-item {
    background: var(--coffee-cream, #FFF8F0);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

    .comment-item:hover {
        transform: translateX(-10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-weight: 700;
    color: var(--coffee-dark, #3C2415);
    font-size: 1.1rem;
}

.comment-date {
    color: var(--coffee-secondary, #A67B5B);
    font-size: 0.9rem;
}

.comment-title {
    font-weight: 600;
    color: var(--coffee-primary, #6F4E37);
    margin-bottom: 10px;
}

.comment-text {
    color: #555;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .article-main-title {
        font-size: 2rem;
    }

    .article-content-wrapper {
        padding: 25px;
        font-size: 1rem;
    }

    .comments-section {
        padding: 25px;
    }

    .like-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .article-hero-overlay {
        padding: 20px 15px 15px;
    }
}
