/* مقالات مدونة Tiger TV - ملف CSS */

:root {
    --tiger-primary: #ff6600;
    --tiger-secondary: #ff8533;
    --tiger-light: #fff2e6;
    --tiger-dark: #cc5200;
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.article-meta .badge {
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 20px;
}

.article-meta .text-muted {
    font-size: 0.9rem;
}

/* Article Image */
.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

/* Table of Contents */
.table-of-contents {
    border-left: 4px solid var(--tiger-primary);
    background: #f8f9fa !important;
}

.table-of-contents ul li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #495057;
    padding: 5px 0;
    display: block;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--tiger-primary);
    padding-right: 10px;
}

/* Content Sections */
.content-section {
    scroll-margin-top: 100px;
}

.content-section h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tiger-light);
}

.content-section h3,
.content-section h4 {
    color: #495057;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #495057;
}

.content-section .lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #6c757d;
}

/* Setup Steps */
.setup-steps {
    counter-reset: step-counter;
    padding-right: 0;
}

.setup-steps > li {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--tiger-primary);
    position: relative;
}

.setup-steps > li::before {
    content: counter(step-counter);
    position: absolute;
    right: -15px;
    top: 15px;
    background: var(--tiger-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.setup-steps ul {
    margin-top: 10px;
    margin-bottom: 0;
}

.setup-steps ul li {
    margin-bottom: 5px;
    color: #6c757d;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 20px;
    margin: 2rem 0;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert i {
    font-size: 1.2rem;
}

/* Accordion */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: var(--tiger-light);
    color: var(--tiger-dark);
    font-weight: 600;
    border: none;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background: var(--tiger-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 20px;
    background: white;
}

/* Article Tags */
.article-tags {
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
}

.article-tags .tag {
    display: inline-block;
    background: var(--tiger-light);
    color: var(--tiger-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 5px 5px 5px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.article-tags .tag:hover {
    background: var(--tiger-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

/* Author Info */
.author-info {
    border-radius: 15px;
    border-left: 4px solid var(--tiger-primary);
}

.author-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-info h5 {
    color: var(--tiger-dark);
    font-weight: 600;
}

.author-info .social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.author-info .social-links a:hover {
    color: var(--tiger-primary) !important;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-share .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-share .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-share .btn-facebook {
    background-color: #3b5998;
    border-color: #3b5998;
}

.social-share .btn-twitter {
    background-color: #1da1f2;
    border-color: #1da1f2;
}

.social-share .btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
}

.social-share .btn-linkedin {
    background-color: #0077b5;
    border-color: #0077b5;
}

/* Related Articles */
.related-articles .card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.related-articles .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.related-articles .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-articles .card:hover .card-img-top {
    transform: scale(1.05);
}

.related-articles .card-title a {
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-articles .card-title a:hover {
    color: var(--tiger-primary);
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--tiger-primary), var(--tiger-secondary));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Code Blocks */
pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    margin: 2rem 0;
}

code {
    background: #f8f9fa;
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Blockquotes */
blockquote {
    border-right: 4px solid var(--tiger-primary);
    background: var(--tiger-light);
    padding: 20px;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--tiger-dark);
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.table thead {
    background: var(--tiger-primary);
    color: white;
}

.table tbody tr:hover {
    background-color: var(--tiger-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header .display-5 {
        font-size: 2rem;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .setup-steps > li {
        padding: 15px;
        margin-bottom: 1.5rem;
    }
    
    .setup-steps > li::before {
        right: -10px;
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .author-info .row {
        text-align: center;
    }
    
    .author-info img {
        margin-bottom: 15px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .social-share,
    .related-articles,
    footer {
        display: none !important;
    }
    
    .article-content {
        padding: 0 !important;
    }
    
    .content-section h2 {
        page-break-after: avoid;
    }
    
    .setup-steps > li {
        page-break-inside: avoid;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--tiger-primary);
    color: white;
}

::-moz-selection {
    background: var(--tiger-primary);
    color: white;
}
