/* POLITICS BASE STYLES - Shared across new politics topics */
/* This extends shared/styles.css for politics-specific layouts and components */

/* TOPIC LAYOUT - Specific to politics detailed pages */
.topic-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.content-panel {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.topic-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 3px solid #dc3545;
    padding-bottom: 0.5rem;
}

.section-intro {
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

/* CONTENT SECTIONS - Politics specific styling */
.content-section {
    margin-bottom: 3rem;
}

.content-section h3 {
    color: #dc3545;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.content-section h4 {
    color: #495057;
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem 0;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #333;
}

/* PRIMARY SOURCES */
.primary-source {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.primary-source::before {
    content: '"';
    font-size: 4rem;
    color: #6c757d;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

.source-citation {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1rem;
    font-weight: 600;
    font-style: normal;
}

/* HIGHLIGHTED CONTENT */
.key-term {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key-term:hover {
    background: #ffeaa7;
    transform: translateY(-1px);
}

.key-figure {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #0c5460;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key-figure:hover {
    background: #bee5eb;
    transform: translateY(-1px);
}

.key-concept {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #155724;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key-concept:hover {
    background: #c3e6cb;
    transform: translateY(-1px);
}

/* SIDEBAR - Politics specific */
.sidebar {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-content {
    display: none;
}

.sidebar-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* NAVIGATION - Politics specific */
.topic-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* RESPONSIVE - Politics layout */
@media (max-width: 768px) {
    .topic-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .topic-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

/* HIGHLIGHTED CONTENT */
.key-term {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key-term:hover {
    background: #ffeaa7;
    transform: translateY(-1px);
}

.key-figure {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #0c5460;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key-figure:hover {
    background: #bee5eb;
    transform: translateY(-1px);
}

.key-concept {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #155724;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key-concept:hover {
    background: #c3e6cb;
    transform: translateY(-1px);
}

/* PRIMARY SOURCES */
.primary-source {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.primary-source::before {
    content: '"';
    font-size: 4rem;
    color: #6c757d;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

.source-citation {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1rem;
    font-weight: 600;
    font-style: normal;
}

/* CONTENT SECTIONS */
.content-section {
    margin-bottom: 3rem;
}

.content-section h3 {
    color: #dc3545;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.content-section h4 {
    color: #495057;
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem 0;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #333;
}

/* SIDEBAR */
.sidebar {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-content {
    display: none;
}

.sidebar-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* NAVIGATION */
.topic-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .topic-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .topic-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

/* SIDEBAR POPUP CONTENT SPACING */
.sidebar-content h4 {
    color: #dc3545;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0;
}

.sidebar-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #333;
}

.sidebar-content p:last-child {
    margin-bottom: 0;
}

/* Add extra spacing between sections with strong labels */
.sidebar-content p strong {
    color: #dc3545;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* First strong element shouldn't have top margin */
.sidebar-content p:first-of-type strong {
    margin-top: 0;
}

/* Alternative approach - if you want more control, you can add classes to your JavaScript */
.sidebar-content .definition-section {
    margin-bottom: 1.5rem;
}

.sidebar-content .context-section {
    margin-bottom: 1.5rem;
}

.sidebar-content .significance-section {
    margin-bottom: 0;
}
