/* ========================================
   Table of Contents (TOC) - Sticky Sidebar
   ======================================== */

/* فضای خالی برای TOC در سمت چپ */
.page-content:has(.toc-sidebar) {
    margin-left: 320px;
}

.toc-sidebar {
    position: fixed;
    top: 120px;
    left: 20px;
    width: 280px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s ease;
}

.toc-container {
    background: var(--black-bg-2, #1f1f1f);
    border: 2px solid rgba(255, 87, 35, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 87, 35, 0.2);
}

.toc-header i {
    font-size: 20px;
    color: var(--orange-color, #ff5723);
}

.toc-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--white-color, #ffffff);
}

.toc-nav {
    max-height: 400px;
    overflow-y: auto;
}

.toc-nav::-webkit-scrollbar {
    width: 6px;
}

.toc-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.toc-nav::-webkit-scrollbar-thumb {
    background: var(--orange-color, #ff5723);
    border-radius: 3px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item,
.toc-item-sub {
    margin-bottom: 8px;
}

.toc-item-sub {
    margin-right: 20px;
}

.toc-link {
    display: block;
    padding: 8px 12px;
    color: var(--white-color, #ffffff);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.toc-link:hover {
    background: rgba(255, 87, 35, 0.1);
    color: var(--orange-color, #ff5723);
    transform: translateX(-3px);
}

.toc-link.active {
    background: var(--orange-color, #ff5723);
    color: var(--white-color, #ffffff);
    font-weight: 600;
}

.toc-empty {
    color: #8899a6;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

/* ========================================
   Comparison Table
   ======================================== */

.comparison-table-section {
    padding: 60px 0;
    background: var(--black-bg, #0f0f0f);
}

.comparison-table-wrapper {
    background: var(--black-bg-2, #1f1f1f);
    border: 2px solid rgba(255, 87, 35, 0.2);
    border-radius: 20px;
    padding: 30px;
    overflow-x: auto;
    margin-bottom: 40px;
}

.comparison-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    color: var(--white-color, #ffffff);
}

.comparison-table-wrapper thead {
    background: linear-gradient(135deg, var(--orange-color, #ff5723) 0%, #ff7a50 100%);
}

.comparison-table-wrapper thead th {
    padding: 20px 15px;
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    color: var(--white-color, #ffffff);
    border: none;
}

.comparison-table-wrapper thead tr th:first-child {
    border-top-right-radius: 15px;
}

.comparison-table-wrapper thead tr th:last-child {
    border-top-left-radius: 15px;
}

.comparison-table-wrapper tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.comparison-table-wrapper tbody tr:hover {
    background: rgba(255, 87, 35, 0.05);
}

.comparison-table-wrapper tbody tr:last-child {
    border-bottom: none;
}

.comparison-table-wrapper tbody td {
    padding: 18px 15px;
    text-align: right;
    font-size: 15px;
    line-height: 1.6;
}

.comparison-table-wrapper tbody td:first-child {
    font-weight: 600;
    color: var(--orange-color, #ff5723);
}

.comparison-conclusion {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border: 2px solid rgba(67, 233, 123, 0.3);
    border-radius: 20px;
    padding: 30px;
    align-items: flex-start;
}

.conclusion-icon {
    flex-shrink: 0;
}

.conclusion-icon i {
    font-size: 48px;
    color: #43e97b;
    filter: drop-shadow(0 0 10px rgba(67, 233, 123, 0.5));
}

.conclusion-content h4 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: #43e97b;
}

.conclusion-content p {
    margin: 0;
    color: var(--white-color, #ffffff);
    line-height: 1.8;
    font-size: 16px;
}

/* ========================================
   Summary Block
   ======================================== */

.summary-block {
    background: var(--black-bg-2, #1f1f1f);
    border: 2px solid rgba(79, 172, 254, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.2);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(79, 172, 254, 0.2);
}

.summary-header i {
    font-size: 32px;
    color: #4facfe;
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5));
}

.summary-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #4facfe;
}

.summary-content {
    color: var(--white-color, #ffffff);
    line-height: 1.8;
    font-size: 16px;
}

/* ========================================
   Pros & Cons Section
   ======================================== */

.pros-cons-section {
    padding: 60px 0;
    background: var(--black-bg, #0f0f0f);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pros-column,
.cons-column {
    background: var(--black-bg-2, #1f1f1f);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pros-column {
    border: 2px solid rgba(67, 233, 123, 0.3);
}

.cons-column {
    border: 2px solid rgba(255, 87, 35, 0.3);
}

.pros-cons-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
}

.pros-header {
    border-bottom: 2px solid rgba(67, 233, 123, 0.3);
}

.cons-header {
    border-bottom: 2px solid rgba(255, 87, 35, 0.3);
}

.pros-cons-header i {
    font-size: 32px;
}

.pros-header i {
    color: #43e97b;
    filter: drop-shadow(0 0 10px rgba(67, 233, 123, 0.5));
}

.cons-header i {
    color: var(--orange-color, #ff5723);
    filter: drop-shadow(0 0 10px rgba(255, 87, 35, 0.5));
}

.pros-cons-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.pros-header h3 {
    color: #43e97b;
}

.cons-header h3 {
    color: var(--orange-color, #ff5723);
}

.pros-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-item,
.cons-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pros-item {
    background: rgba(67, 233, 123, 0.05);
}

.pros-item:hover {
    background: rgba(67, 233, 123, 0.1);
    transform: translateX(-5px);
}

.cons-item {
    background: rgba(255, 87, 35, 0.05);
}

.cons-item:hover {
    background: rgba(255, 87, 35, 0.1);
    transform: translateX(-5px);
}

.pros-item i {
    color: #43e97b;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cons-item i {
    color: var(--orange-color, #ff5723);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pros-item span,
.cons-item span {
    color: var(--white-color, #ffffff);
    line-height: 1.6;
    font-size: 15px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1400px) {
    .toc-sidebar {
        width: 250px;
    }
}

@media (max-width: 1200px) {
    /* حذف margin در موبایل و تبلت */
    .page-content:has(.toc-sidebar) {
        margin-left: 0;
    }
    
    .toc-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        margin-bottom: 40px;
    }
    
    .toc-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .comparison-table-wrapper {
        padding: 20px 15px;
    }
    
    .comparison-table-wrapper table {
        font-size: 14px;
    }
    
    .comparison-table-wrapper thead th,
    .comparison-table-wrapper tbody td {
        padding: 12px 10px;
    }
    
    .comparison-conclusion {
        flex-direction: column;
        padding: 20px;
    }
    
    .conclusion-icon i {
        font-size: 36px;
    }
    
    .conclusion-content h4 {
        font-size: 18px;
    }
    
    .conclusion-content p {
        font-size: 14px;
    }
    
    .summary-block {
        padding: 20px;
    }
    
    .summary-header h3 {
        font-size: 20px;
    }
    
    .summary-content {
        font-size: 14px;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pros-column,
    .cons-column {
        padding: 20px;
    }
    
    .pros-cons-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .toc-sidebar {
        margin-bottom: 30px;
    }
    
    .comparison-table-wrapper {
        padding: 15px 10px;
    }
    
    .comparison-table-wrapper table {
        font-size: 12px;
    }
    
    .summary-block {
        padding: 15px;
        margin: 30px 0;
    }
    
    .pros-item,
    .cons-item {
        padding: 12px;
        font-size: 14px;
    }
}


/* ========================================
   How-To Section (مراحل انجام کار)
   ======================================== */

.howto-section {
    padding: 60px 0;
    background: var(--black-bg, #0f0f0f);
}

.howto-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.howto-header i {
    font-size: 36px;
    color: var(--orange-color, #ff5723);
    filter: drop-shadow(0 0 10px rgba(255, 87, 35, 0.5));
}

.howto-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--white-color, #ffffff);
}

.howto-steps {
    max-width: 900px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--black-bg-2, #1f1f1f);
    border: 2px solid rgba(255, 87, 35, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.howto-step:hover {
    border-color: var(--orange-color, #ff5723);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 87, 35, 0.3);
}

.howto-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--orange-color, #ff5723) 0%, #ff7a50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 87, 35, 0.4);
}

.step-number span {
    font-size: 24px;
    font-weight: 700;
    color: var(--white-color, #ffffff);
}

.step-content {
    flex: 1;
}

.step-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--white-color, #ffffff);
}

.step-description {
    margin: 0;
    color: #8899a6;
    line-height: 1.8;
    font-size: 15px;
}

.step-icon {
    flex-shrink: 0;
}

.step-icon i {
    font-size: 28px;
    color: #43e97b;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.howto-step:hover .step-icon i {
    opacity: 1;
    transform: scale(1.2);
}

/* ========================================
   Stats & Quote Section
   ======================================== */

.stats-quote-section {
    padding: 60px 0;
    background: var(--black-bg, #0f0f0f);
}

.stats-container {
    margin-bottom: 50px;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.stats-header i {
    font-size: 28px;
    color: #4facfe;
}

.stats-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--white-color, #ffffff);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-item {
    background: var(--black-bg-2, #1f1f1f);
    border: 2px solid rgba(79, 172, 254, 0.2);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #4facfe;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.stat-item i {
    font-size: 24px;
    color: #4facfe;
    flex-shrink: 0;
    margin-top: 2px;
}

.stat-item p {
    margin: 0;
    color: var(--white-color, #ffffff);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 600;
}

.quote-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
}

.quote-icon i {
    font-size: 80px;
    color: #667eea;
}

.quote-text {
    margin: 0 0 20px 0;
    font-size: 18px;
    line-height: 1.8;
    color: var(--white-color, #ffffff);
    font-style: italic;
    position: relative;
    z-index: 2;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.quote-author i {
    font-size: 18px;
    color: #667eea;
}

.quote-author span {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

/* ========================================
   Conclusion Section
   ======================================== */

.conclusion-section {
    padding: 60px 0;
    background: var(--black-bg, #0f0f0f);
}

.conclusion-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.conclusion-header i {
    font-size: 36px;
    color: #43e97b;
    filter: drop-shadow(0 0 10px rgba(67, 233, 123, 0.5));
}

.conclusion-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--white-color, #ffffff);
}

.conclusion-content {
    max-width: 900px;
    margin: 0 auto;
}

.conclusion-summary {
    background: var(--black-bg-2, #1f1f1f);
    border: 2px solid rgba(67, 233, 123, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.conclusion-summary h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: #43e97b;
}

.conclusion-summary p {
    margin: 0;
    color: var(--white-color, #ffffff);
    line-height: 1.8;
    font-size: 16px;
}

.conclusion-keypoints {
    background: var(--black-bg-2, #1f1f1f);
    border: 2px solid rgba(79, 172, 254, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.conclusion-keypoints h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #4facfe;
}

.keypoints-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.keypoints-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.keypoints-list li:last-child {
    border-bottom: none;
}

.keypoints-list i {
    color: #43e97b;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.keypoints-list span {
    color: var(--white-color, #ffffff);
    line-height: 1.6;
    font-size: 15px;
}

.conclusion-final {
    background: linear-gradient(135deg, rgba(255, 87, 35, 0.1) 0%, rgba(255, 122, 80, 0.1) 100%);
    border: 2px solid rgba(255, 87, 35, 0.3);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.final-icon {
    flex-shrink: 0;
}

.final-icon i {
    font-size: 40px;
    color: var(--orange-color, #ff5723);
    filter: drop-shadow(0 0 10px rgba(255, 87, 35, 0.5));
}

.final-content h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--orange-color, #ff5723);
}

.final-content p {
    margin: 0;
    color: var(--white-color, #ffffff);
    line-height: 1.8;
    font-size: 16px;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: 80px 0;
    background: var(--black-bg, #0f0f0f);
}

.cta-box {
    background: linear-gradient(135deg, var(--orange-color, #ff5723) 0%, #ff7a50 100%);
    border-radius: 30px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 87, 35, 0.4);
}

.cta-decoration {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 30px;
}

.cta-icon {
    flex-shrink: 0;
}

.cta-icon i {
    font-size: 60px;
    color: var(--white-color, #ffffff);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-text {
    flex: 1;
}

.cta-title {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--white-color, #ffffff);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cta-action {
    flex-shrink: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white-color, #ffffff);
    color: var(--orange-color, #ff5723);
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--orange-color, #ff5723);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(-5px);
}

/* ========================================
   Responsive - New Shortcodes
   ======================================== */

@media (max-width: 768px) {
    .howto-step {
        flex-direction: column;
        padding: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
    }
    
    .step-number span {
        font-size: 20px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-container {
        padding: 25px;
    }
    
    .quote-text {
        font-size: 16px;
    }
    
    .conclusion-summary,
    .conclusion-keypoints,
    .conclusion-final {
        padding: 20px;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cta-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-icon i {
        font-size: 48px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-description {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .howto-header h2,
    .conclusion-header h2 {
        font-size: 24px;
    }
    
    .step-icon {
        display: none;
    }
    
    .conclusion-final {
        flex-direction: column;
    }
}
