
@font-face {
    font-family: "Peyda-main";
    src: url("../fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  
  @font-face {
    font-family: "vazir-main";
    src: url("../fonts/vazir.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: "lalezar-main";
    src: url("../fonts/lalezar.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
 
  
* {
    font-family:"Peyda-main" ;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffbb00;
    --primary-dark: #e6a600;
    --primary-light: #ffd54f;
    --back-dark: #3d3c36;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    border: none;
    padding: 0 2rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Filters Section */
.filters-section {
    background: var(--white);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filters-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-light);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Articles Grid */
.articles-section {
    padding: 2rem 0 4rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article Card */
.article-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--back-dark);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-card-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-meta-item i {
    color: var(--primary-color);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff5722;
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 187, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-info {
    margin: 0 1rem;
    color: var(--text-light);
}

/* Article Detail Page */
.article-detail {
    padding: 2rem 0 4rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-tags .tag {
    background: var(--bg-light);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.article-tags .tag:hover {
    background: var(--primary-light);
}

.featured-image-wrapper {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    background: var(--bg-light);
    border-right: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.article-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body code {
    background: var(--bg-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Article Actions */
.article-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.like-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.like-btn:hover,
.share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.like-btn.liked {
    background: var(--primary-color);
    color: var(--white);
}

.like-btn.liked i {
    animation: heartbeat 0.5s ease;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Comments Section */
.comments-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-title i {
    color: var(--primary-color);
}

.comment-form {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.comment-form h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    position: relative;
}

.comment-item.reply {
    margin-right: 3rem;
    background: #f0f0f0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.reply-btn:hover {
    text-decoration: underline;
}

/* Related Articles */
.related-articles {
    margin-bottom: 3rem;
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.related-card-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        gap: 1rem;
    }

    .comment-item.reply {
        margin-right: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination .page-info {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 8px;
    }

    .search-box button {
        padding: 1rem;
    }

    .article-card-content {
        padding: 1rem;
    }

    .article-card-title {
        font-size: 1.1rem;
    }

    .related-card {
        flex-direction: column;
    }

    .related-card-image {
        width: 100%;
        height: 150px;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .hero-section,
    .filters-section,
    .article-actions,
    .comments-section,
    .related-articles,
    .main-footer {
        display: none;
    }

    .article-content {
        box-shadow: none;
        padding: 0;
    }

    .article-body {
        font-size: 12pt;
    }
}
/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.show {
    opacity: 1;
}

.share-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal.show .share-modal-content {
    transform: scale(1);
}

.share-modal h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.share-option:hover {
    transform: scale(1.1);
}

.share-option.twitter { background: #1DA1F2; }
.share-option.facebook { background: #4267B2; }
.share-option.telegram { background: #0088cc; }
.share-option.whatsapp { background: #25D366; }

.share-link {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 10px;
}

.share-link input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.5rem;
    font-size: 0.9rem;
    direction: ltr;
}

.share-link button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.share-link button:hover {
    background: var(--primary-hover);
}

.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Login Prompt Modal */
.login-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-prompt-modal.show {
    opacity: 1;
}

.login-prompt-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.login-prompt-modal.show .login-prompt-content {
    transform: translateY(0);
}

.login-prompt-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-prompt-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.login-prompt-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.login-prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.login-prompt-actions .btn {
    padding: 0.75rem 2rem;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page i {
    font-size: 5rem;
    color: var(--danger-color);
    margin-bottom: 2rem;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-page p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Cancel Reply Button */
.cancel-reply-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: background-color 0.2s ease;
}

.cancel-reply-btn:hover {
    background: #d32f2f;
}

/* Loading State for Comment Form */
.comment-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.comment-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 15px;
}

.no-comments i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-comments p {
    color: var(--text-secondary);
}

/* Related Articles */
.related-article-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-article-card:hover {
    background: var(--bg-hover);
    transform: translateX(-5px);
}

.related-article-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.related-article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.related-article-meta i {
    margin-left: 0.25rem;
}
.share-link {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 10px;
}

.share-link input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.5rem;
    font-size: 0.9rem;
    direction: ltr;
}

.share-link button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.share-link button:hover {
    background: var(--primary-hover);
}

.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Login Prompt Modal */
.login-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-prompt-modal.show {
    opacity: 1;
}

.login-prompt-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.login-prompt-modal.show .login-prompt-content {
    transform: translateY(0);
}

.login-prompt-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-prompt-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.login-prompt-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.login-prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.login-prompt-actions .btn {
    padding: 0.75rem 2rem;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page i {
    font-size: 5rem;
    color: var(--danger-color);
    margin-bottom: 2rem;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-page p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Cancel Reply Button */
.cancel-reply-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: background-color 0.2s ease;
}

.cancel-reply-btn:hover {
    background: #d32f2f;
}

/* Loading State for Comment Form */
.comment-form.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.comment-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 15px;
}

.no-comments i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-comments p {
    color: var(--text-secondary);
}

/* Related Articles */
.related-article-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-article-card:hover {
    background: var(--bg-hover);
    transform: translateX(-5px);
}

.related-article-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.related-article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.related-article-meta i {
    margin-left: 0.25rem;
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 2rem;
}

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    .header,
    .footer,
    .share-buttons,
    .comments-section,
    .related-articles,
    .breadcrumb,
    .article-actions,
    .notification,
    .share-modal,
    .login-prompt-modal {
        display: none !important;
    }
    
    /* Optimize article layout for print */
    .article-container {
        max-width: 100%;
        padding: 0;
    }
    
    .article-header {
        margin-bottom: 2rem;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.8;
        color: #000;
    }
    
    /* Ensure images fit on page */
    .article-content img {
        max-width: 100%;
        height: auto;
        page-break-inside: avoid;
    }
    
    /* Add page breaks */
    h2, h3 {
        page-break-after: avoid;
    }
    
    p {
        page-break-inside: avoid;
    }
    
    /* Show link URLs */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Skeleton Loading States */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.skeleton.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 187, 0, 0.1),
        transparent
    );
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Article Loader */
#articleLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-secondary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --bg-hover: #3a3a3a;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --border-color: #444444;
    }
    
    .article-container,
    .share-modal-content,
    .login-prompt-content {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .article-content img {
        opacity: 0.9;
    }
    
    .share-link input {
        color: var(--text-primary);
    }
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff9500;
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f0f0f0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}
