/* ============================================
   ARTICLES.CSS - Articoli e Post
   Tema: Nero #000 + Arancione #FF6200
   ============================================ */

/* HERO ARTICLES */
.articles-hero,
.post-hero {
    background: #000000;
    color: #ffffff;
    padding: 4rem 0 3rem;
    border-bottom: 3px solid #FF6200;
}

.articles-hero h1,
.post-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.articles-hero .description {
    font-size: 1.2rem;
    color: #e0e0e0;
    opacity: 0.9;
}

/* POST META */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.post-meta .badge {
    background: #FF6200;
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.post-meta i {
    color: #FF6200;
}

.updated-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* BREADCRUMB NAV */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.breadcrumb-nav a {
    color: #FF6200;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb-nav a:hover {
    opacity: 0.8;
}

.breadcrumb-nav .current {
    color: #ffffff;
}

/* BADGES */
.badge-private,
.badge-draft {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 98, 0, 0.2);
    border: 1px solid #FF6200;
    color: #FF6200;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-draft {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #ffc107;
}

/* SECTION */
.articles-section,
.post-section {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 3rem 0;
    min-height: 60vh;
}

/* ARTICLE CARD */
.article-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: #FF6200;
    background: rgba(255, 98, 0, 0.05);
}

.article-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.article-card h2 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: #FF6200;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.article-meta .badge {
    background: #FF6200;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
}

.article-meta i {
    color: #FF6200;
}

.article-excerpt {
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF6200;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    color: #ff7a1f;
    gap: 0.75rem;
}

/* POST CONTENT CARD */
.post-content-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #FF6200;
    padding-bottom: 0.5rem;
}

.post-content a {
    color: #FF6200;
    text-decoration: underline;
}

.post-content a:hover {
    color: #ff7a1f;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid #FF6200;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.post-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* ADMIN ACTIONS */
.admin-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* SIDEBAR */
.sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FF6200;
    margin-bottom: 1.5rem;
}

.sidebar-text {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

/* RELATED LIST */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.related-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.related-list a {
    display: block;
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.related-list a:hover {
    color: #FF6200;
}

.related-list .lock-icon,
.related-list .draft-icon {
    color: #FF6200;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.related-list .title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.related-list .date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* CATEGORY LIST */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem 0;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    color: #FF6200;
    padding-left: 0.5rem;
}

/* PAGINATION CONTROLS */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.per-page-selector label {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.per-page-selector select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.pagination .page-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-item a:hover {
    background: #FF6200;
    border-color: #FF6200;
    color: #ffffff;
}

.pagination .page-item.active a {
    background: #FF6200;
    border-color: #FF6200;
    color: #ffffff;
}

.pagination .page-item.disabled a {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* NO ARTICLES */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
}

.no-articles i {
    font-size: 4rem;
    color: #FF6200;
    margin-bottom: 1.5rem;
}

.no-articles h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-articles p {
    color: #e0e0e0;
}

/* ACCESS DENIED */
.access-denied {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 5rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.access-denied i {
    font-size: 5rem;
    color: #FF6200;
    margin-bottom: 2rem;
}

.access-denied h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.access-denied .small-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* BUTTONS */
.btn-primary-custom {
    background: #FF6200;
    border-color: #FF6200;
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: #ff7a1f;
    border-color: #ff7a1f;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: #FF6200;
    color: #FF6200;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: #FF6200;
    border-color: #FF6200;
    color: #ffffff;
}

/* ============================================
   SHORTCODES STYLES
   ============================================ */

/* TOC - Table of Contents */
.toc-container {
    background: rgba(255, 98, 0, 0.05);
    border: 2px solid #FF6200;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.toc-nav {
    color: #e0e0e0;
}

.toc-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.toc-list li {
    margin: 0.5rem 0;
}

.toc-level-3 {
    margin-left: 1.5rem;
}

.toc-level-4 {
    margin-left: 3rem;
}

.toc-list a {
    color: #FF6200;
    text-decoration: none;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: #ff7a1f;
    text-decoration: underline;
}

.toc-empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.toc-highlight {
    background-color: rgba(255, 98, 0, 0.2) !important;
    transition: background-color 0.3s ease;
}

/* NOTIFICA SHORTCODE */
.notifica-container {
    width: 100%;
    margin: 2rem 0;
}

.notifica-wrap {
    margin: 0 auto;
    max-width: 800px;
    background: rgba(255, 98, 0, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #FF6200;
}

.notifica-title {
    color: #FF6200;
    margin-bottom: 1rem;
}

.notifica-checkboxes {
    margin: 1.5rem 0;
}

.notifica-checkbox-item {
    margin: 1rem 0;
}

.notifica-checkbox-item label {
    display: flex;
    align-items: start;
    cursor: pointer;
    color: #e0e0e0;
}

.notifica-checkbox-item input[type="checkbox"] {
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

.notifica-submit {
    text-align: center;
    margin-top: 2rem;
}

.notifica-success {
    text-align: center;
    padding: 2rem;
    color: #28a745;
}

/* VIDEO SHORTCODE */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container-native {
    margin: 2rem auto;
}

.video-container-native video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.video-error {
    color: #dc3545;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .articles-hero,
    .post-hero {
        padding: 3rem 0 2rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .per-page-selector {
        justify-content: space-between;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .post-content-card {
        padding: 1.5rem;
    }
    
    .notifica-wrap {
        padding: 1.5rem;
    }
    
    .toc-container {
        padding: 1rem;
    }
}
