/* ================================
   RUBRICA PAGE STYLES
   ================================ */

/* ================================
   BREADCRUMB NAVIGATION
   ================================ */
.breadcrumb {
    background-color: var(--light-gray);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-link {
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--secondary-teal);
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: var(--dark-gray);
    font-weight: 600;
}

/* ================================
   RUBRICA HERO SECTION
   ================================ */
.rubrica-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rubrica-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.03)" width="50" height="50"/><rect fill="rgba(255,255,255,0.03)" x="50" y="50" width="50" height="50"/></svg>');
    opacity: 0.5;
}

.rubrica-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.rubrica-hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.rubrica-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.rubrica-hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* ================================
   SECTION INTRO
   ================================ */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-top: 1rem;
}

/* ================================
   INFOGRAPHICS GALLERY
   ================================ */
.infographics-section {
    background: var(--light-gray);
}

.infographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.infographic-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.infographic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.infographic-image {
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
    aspect-ratio: 3/4;
}

.infographic-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-slow);
}

.infographic-card:hover .infographic-image img {
    transform: scale(1.05);
}

.infographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 90, 142, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.infographic-card:hover .infographic-overlay {
    opacity: 1;
}

.infographic-overlay button {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.infographic-overlay button:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.infographic-content {
    padding: 1.5rem;
}

.infographic-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.infographic-description {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ================================
   EMPTY STATE
   ================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1.1rem;
}

.empty-state.hidden {
    display: none;
}

/* ================================
   RELATED RESOURCES
   ================================ */
.related-resources {
    background: var(--white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.resource-card:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: transform var(--transition-medium);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1) rotate(5deg);
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.resource-card p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

/* ================================
   LIGHTBOX MODAL
   ================================ */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 2rem;
    overflow: auto;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: scale(1.1);
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-prev {
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    color: #6c757d;
    line-height: 1.6;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 968px) {
    .rubrica-hero-title {
        font-size: 2.2rem;
    }

    .rubrica-hero-subtitle {
        font-size: 1.2rem;
    }

    .infographics-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 640px) {
    .rubrica-hero {
        padding: 3rem 0 2rem;
    }

    .rubrica-hero-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .rubrica-hero-title {
        font-size: 1.8rem;
    }

    .rubrica-hero-subtitle {
        font-size: 1.1rem;
    }

    .rubrica-hero-description {
        font-size: 1rem;
    }

    .infographics-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ================================
   STORIA PAGE STYLES
   ================================ */

/* Article Hero */
.article-hero {
    background: linear-gradient(135deg, #1e5a8e 0%, #2c3e50 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article Content */
.article-content {
    padding: 3rem 0;
    background: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-body {
    min-width: 0;
}

/* Table of Contents */
.table-of-contents {
    position: sticky;
    top: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
}

.table-of-contents h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1e5a8e;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: block;
}

.table-of-contents a:hover {
    color: #1e5a8e;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1e5a8e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #1e5a8e;
}

.content-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
}

.content-section h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Party Views */
.party-view {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #1e5a8e;
}

.party-view.highlight {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.party-view h4 {
    color: #1e5a8e;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1e5a8e 0%, #27ae60 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -41px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 3px solid #1e5a8e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1e5a8e;
    font-size: 0.9rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.timeline-content h4 {
    color: #1e5a8e;
    margin-top: 0;
}

/* Success Box */
.success-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    flex-shrink: 0;
}

.success-content h3 {
    color: #155724;
    margin-top: 0;
    font-size: 1.8rem;
}

.success-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.success-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #155724;
}

.success-list i {
    color: #28a745;
    font-size: 1.3rem;
}

/* Info Boxes */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box h4 {
    color: #1565c0;
    margin-top: 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.warning-box i {
    color: #f57c00;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.law-reference {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.law-reference blockquote {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-left: 4px solid #1e5a8e;
    font-style: italic;
    color: #2c3e50;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature-list i {
    color: #1e5a8e;
    font-size: 1.3rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #1e5a8e;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e5a8e 0%, #27ae60 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-icon i {
    color: white;
    font-size: 1.8rem;
}

.benefit-card h4 {
    color: #1e5a8e;
    margin-top: 0;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #1e5a8e 0%, #27ae60 100%);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    margin-top: 3rem;
}

.article-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #1e5a8e;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Article Navigation */
.article-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #f8f9fa;
    color: #1e5a8e;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-button:hover {
    background: #1e5a8e;
    color: white;
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .table-of-contents {
        position: relative;
        top: 0;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .success-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .article-hero {
        padding: 3rem 0 2rem;
    }
    
    .article-title {
        font-size: 1.7rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-marker {
        left: -34px;
        width: 28px;
        height: 28px;
    }
}