/* Modern Blog Styles */
:root {
    --primary-color: #2d3436;
    --accent-color: #db3a1d;
    --text-color: #2d3436;
    --light-bg: #ffffff;
    --transition: all 0.3s ease;
}

.blog-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
}

.blog-container {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.blog-header {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-header:hover img {
    transform: scale(1.05);
}

.blog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-date, .post-category {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.post-title-container {
    text-align: center;
    padding: 0 3rem;
    margin-bottom: 3rem;
}

.post-title {
    font-size: 2.8rem;
    margin: 0;
    line-height: 1.2;
    color: var(--primary-color);
}

.post-title span {
    color: #db3a1d;
}

.blog-content {
    padding: 3rem;
}

.tip-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color:#db3a1d;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tip-card h2 i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.tip-card p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.bonus-tip {
    background: #f7f1ef;
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.bonus-tip h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #db3a1d;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.bonus-tip p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    color: black;
}

.blog-footer {
    padding: 2rem 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    background: #f7f1ef;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #db3a1d;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    transform: translateX(-5px);
}

.social-share {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-share span {
    color: black;
    font-size: 0.9rem;
}

.social-icon {
    color: #db3a1d;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.back-arrow {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: #db3a1d;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    z-index: 1000;
}

.back-arrow:hover {
    transform: translateX(-5px);
    background: #dd5840;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post {
        padding: 1rem;
    }

    .blog-header {
        height: 300px;
    }

    .blog-content {
        padding: 2rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .blog-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .tip-card {
        padding: 1.5rem;
    }

    .tip-card h2 {
        font-size: 1.3rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tip-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.tip-card:nth-child(2) { animation-delay: 0.1s; }
.tip-card:nth-child(3) { animation-delay: 0.2s; }
.tip-card:nth-child(4) { animation-delay: 0.3s; }
.tip-card:nth-child(5) { animation-delay: 0.4s; }

/* Table of Contents */
.toc-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.toc-title {
    font-size: 1.5rem;
    color: #db3a1d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.toc-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.toc-list a:hover {
    color: var(--accent-color);
}

/* Reading Time and Share */
.post-meta-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.reading-time i {
    color: var(--accent-color);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 3rem 0;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin: 0 0 0.5rem;
    color: #db3a1d;
}

.author-info p {
    margin: 0;
    color: var(--text-color);
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color:#db3a1d;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #db3a1d;
}

.related-content p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Comments Section */
.comments-section {
    margin: 3rem 0;
}

.comments-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color:#db3a1d;
}

.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #db3a1d;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #db3a1d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #f2482a;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #db3a1d;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #dd5840;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-image {
        margin: 0 auto;
    }

    .post-meta-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
} 