/**
 * Public Article Styles
 * Used for both public pages and admin preview
 */

.article-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Reduce padding on mobile devices */
@media (max-width: 576px) {
    .article-container {
        margin: 0.5rem auto;
        padding: 0 0.25rem;
    }
}

.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Smaller border radius on mobile */
@media (max-width: 576px) {
    .article-card {
        border-radius: 8px;
    }
}

.article-header {
    background: linear-gradient(135deg, #F9FCF8 0%, #ffffff 100%);
    color: #2d5016;
    padding: 2rem;
    border-bottom: 2px solid #e8f0e6;
}

/* Reduce header padding on mobile */
@media (max-width: 576px) {
    .article-header {
        padding: 1rem;
    }
}

.article-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.article-meta {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-size: 0.9rem;
    color: #5a7a3c;
}

.article-content {
    padding: 2rem;
    line-height: 1.8;
    color: #333;
}

/* Reduce content padding on mobile */
@media (max-width: 576px) {
    .article-content {
        padding: 1rem;
    }
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content code {
    background: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e53e3e;
}

.article-content pre {
    background: #2d3748;
    color: #f7fafc;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.article-content blockquote {
    border-left: 4px solid #7cb342;
    padding-left: 1rem;
    margin-left: 0;
    color: #4a5568;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.article-content table th,
.article-content table td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.article-content table th {
    background: #f7fafc;
    font-weight: 600;
}

/* Language Dropdown Styles (Mobile) */
.dropdown-menu .dropdown-item.active {
    background-color: rgba(45, 80, 22, 0.15);
    color: #2d5016;
    font-weight: 600;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(45, 80, 22, 0.1);
    color: #2d5016;
}

.dropdown-menu .dropdown-item i {
    margin-right: 0.5rem;
    color: #5a7a3c;
}

/* ========================================
   Dasher Device Specific Styles
   ======================================== */

/* Wider container for Dasher device */
.dasher-device .article-container {
    max-width: 1200px !important; /* Default: 900px */
}

/* Larger fonts for Dasher device (Linux; Android 11; Dasher) */
.dasher-device .article-header h1 {
    font-size: 2.5rem !important; /* Default: 2rem */
}

.dasher-device .article-meta {
    font-size: 1.1rem !important; /* Default: 0.9rem */
}

.dasher-device .article-content {
    font-size: 1.3rem !important; /* Default: 1.1rem */
    line-height: 1.8 !important; /* Default: 1.6 */
}

.dasher-device .article-content h2 {
    font-size: 2rem !important; /* Default: 1.5rem */
}

.dasher-device .article-content h3 {
    font-size: 1.6rem !important; /* Default: 1.25rem */
}

.dasher-device .article-content p {
    font-size: 1.3rem !important; /* Default: 1.1rem */
    margin-bottom: 1.5rem !important; /* Default: 1rem */
}

.dasher-device .article-content ul,
.dasher-device .article-content ol {
    font-size: 1.3rem !important; /* Default: 1.1rem */
}

.dasher-device .article-content li {
    margin-bottom: 0.75rem !important; /* Default: 0.5rem */
}

/* Navbar and language switcher */
.dasher-device .navbar-brand {
    font-size: 1.5rem !important; /* Default: 1.25rem */
}

.dasher-device .language-switcher a,
.dasher-device .dropdown-toggle {
    font-size: 1.1rem !important; /* Default: 1rem */
    padding: 0.5rem 1rem !important; /* Default: 0.25rem 0.75rem */
}

.dasher-device .dropdown-menu .dropdown-item {
    font-size: 1.1rem !important; /* Default: 1rem */
    padding: 0.75rem 1.25rem !important; /* Default: 0.5rem 1rem */
}

