/* Organizations Category - Custom Styles */

/* Import base styles from root */
@import url('/styles.css');

/* Category-specific color overrides */
:root {
    /* Override accent colors for Organizations theme */
    --category-primary: #9d4edd;      /* Purple - for power/influence */
    --category-secondary: #7b2cbf;    /* Darker purple */
}

/* Custom category header styling */
.category-header {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(0, 0, 0, 0.95));
    border-bottom: 2px solid var(--category-primary);
    padding: 60px 24px;
    margin-bottom: 80px;
    text-align: center;
}

.category-header h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 3rem;
    background: linear-gradient(90deg, var(--category-primary), var(--cosmic-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.category-header p {
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Breadcrumb styling */
.breadcrumb {
    padding: 30px 0 20px;
    font-size: 0.95rem;
    animation: fadeIn 1s ease-out;
}

.breadcrumb a {
    color: var(--category-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--cosmic-white);
}

.breadcrumb span {
    color: var(--text-gray);
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--category-secondary);
}

/* Organization Article Container */
.org-article {
    max-width: 900px;
    margin: 0 auto 80px;
    animation: fadeIn 1s ease-out 0.3s both;
}

/* Organization Header with Image */
.org-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(157, 78, 221, 0.2);
}

.org-image {
    float: left;
    width: 200px;
    height: auto;
    margin: 0 24px 16px 0;
    border-radius: 8px;
    border: 2px solid var(--category-primary);
    box-shadow: 0 8px 32px rgba(157, 78, 221, 0.3);
}

.org-title-section h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--category-primary), var(--cosmic-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.org-subtitle {
    font-size: 1.2rem;
    color: var(--category-secondary);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.org-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.meta-item strong {
    color: var(--category-primary);
}

/* Article Body */
.article-body {
    clear: both;
    padding-top: 20px;
}

.article-section {
    margin-bottom: 40px;
}

.article-section h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.6rem;
    color: var(--category-primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
    padding-top: 10px;
}

.article-section h3 {
    font-size: 1.3rem;
    color: var(--category-secondary);
    margin-bottom: 12px;
    margin-top: 24px;
    font-weight: 600;
}

.article-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cosmic-white);
    margin-bottom: 16px;
}

.article-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.article-section ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cosmic-white);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.article-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--category-primary);
    font-size: 1.2rem;
}

.article-section ul li strong {
    color: var(--category-primary);
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05), rgba(0, 0, 0, 0.8));
    border-left: 4px solid var(--category-primary);
    padding: 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.info-box h3 {
    margin-top: 0;
    padding-top: 0;
}

/* Related Links Section */
.related-section {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05), rgba(0, 0, 0, 0.8));
    border-left: 4px solid var(--category-primary);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.related-section h2 {
    margin-top: 0;
    padding-top: 0;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.related-links li {
    padding-left: 0;
}

.related-links li::before {
    display: none;
}

.related-links a {
    color: var(--category-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 12px;
    background: rgba(157, 78, 221, 0.05);
    border-radius: 4px;
}

.related-links a:hover {
    color: var(--cosmic-white);
    background: rgba(157, 78, 221, 0.1);
}

/* Articles Grid for Index Page */
.articles-section {
    margin: 0 0 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.article-card {
    display: block;
    background: linear-gradient(135deg, rgba(10, 10, 18, 0.9), rgba(0, 0, 0, 0.95));
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--cosmic-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--category-primary), var(--category-secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    border-image: linear-gradient(135deg, var(--category-primary), var(--category-secondary)) 1;
    box-shadow: 
        0 12px 48px rgba(157, 78, 221, 0.3),
        0 12px 48px rgba(123, 44, 191, 0.2),
        inset 0 0 40px rgba(157, 78, 221, 0.08);
}

.article-card:hover::before {
    opacity: 0.1;
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(10, 10, 18, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid rgba(157, 78, 221, 0.2);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.3));
    transition: all 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(157, 78, 221, 0.5));
}

.article-content {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.article-content h3 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--category-primary), var(--cosmic-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.article-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .category-header h1 {
        font-size: 2.2rem;
    }

    .org-image {
        float: none;
        margin: 0 auto 24px;
        display: block;
        max-width: 180px;
    }

    .org-title-section h1 {
        font-size: 1.8rem;
    }

    .org-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .category-header h1 {
        font-size: 1.8rem;
    }

    .breadcrumb {
        padding: 20px 0 15px;
        font-size: 0.85rem;
    }
}
