/* Additional Custom Styles */

.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .post-thumbnail {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.single-post .entry-header {
    margin-bottom: 30px;
}

.single-post .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.single-post .entry-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-gray);
    font-size: 0.9rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-color);
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.single-post .entry-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post .entry-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content img {
    border-radius: 10px;
    margin: 30px 0;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post .entry-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.single-post .entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-color);
}

.single-post .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-post .tags a {
    background: var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.single-post .tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Comments */
.comments-area {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid var(--light-color);
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* Pagination */
.posts-navigation,
.post-navigation {
    margin-top: 50px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous a,
.nav-next a {
    background: var(--gradient-2);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-block;
    transition: var(--transition);
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Widget Styles */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-color);
}

.widget li:last-child {
    border-bottom: none;
}

/* Responsive Enhancements */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .blog-card {
        padding: 25px 20px;
    }
    
    .single-post .entry-title {
        font-size: 2rem;
    }
}

/* Loading State */
body:not(.loaded) {
    overflow: hidden;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--light-color);
    clip: auto !important;
    clip-path: none;
    color: var(--dark-color);
    display: block;
    font-size: 0.875rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .comments-area {
        display: none;
    }
    
    .single-post .entry-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}
