/* Shared styles for Effective Transsexualism website */

/* Base styling */
body {
    margin: 0;
    padding: 0 0 0 30px;
    background: #fff url('stripe-piece.png') repeat-y 0px top;
    background-size: 30px auto;
    font-family: 'Nunito', sans-serif;
    line-height: 1.3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 1.2em;
    margin-bottom: 0.4em;
    font-family: 'Source Sans Pro', 'Nunito', sans-serif;
    font-weight: 400;
}

h1 {
    color: #333;
    border-bottom: 2px solid #1a365d;
    padding-bottom: 10px;
}

/* Navigation styles */
.nav-header {
    display: flex;
    align-items: center;
    gap: 1.5em;
    flex-wrap: wrap;
    padding: 0.8em;
    margin-left: -30px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    position: relative;
    z-index: 10;
}


.nav-links {
    display: flex;
    gap: 1.5em;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links {
    font-family: 'Source Sans Pro', 'Nunito', sans-serif;
}

.nav-links a {
    color: #2d5c8e;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3em 0;
    border-bottom: 2px solid transparent;
    font-size: 0.95em;
}

/* .nav-links a:hover,
.nav-links a.active {
    color: #2d5c8e;
    text-decoration: underline;
    border-bottom-color: #2d5c8e;
} */

/* Main content area */
main {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5em 3%;
}

/* Details/summary elements */
details {
    margin-bottom: 0.8em;
}

summary {
    cursor: pointer;
    font-weight: bold;
    font-size: large;
    padding: 0.3em 0;
}

summary:hover {
    color: #0085ff;
}

/* Social buttons */
.social-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 5px;
    text-decoration: none;
    color: #1a365d;
    padding: 0.4em;
    border-radius: 4px;
    font-weight: 500;
}

.social-button svg {
    width: 24px;
    height: 24px;
    fill: #1a365d;
}

.social-button:hover {
    background-color: #ecf0f1;
    color: #2b4c6f;
    text-decoration: underline;
}

.social-button:hover svg {
    fill: #2b4c6f;
}

/* Calendar and event styles */
.calendar-buttons {
    margin: 12px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1a365d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.calendar-button:hover {
    background: #2b4c6f;
    text-decoration: underline;
}

.event-list {
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.event-item {
    background: #f8f9fa;
    border-left: 4px solid #1a365d;
    padding: 10px;
    margin: 6px 0;
    border-radius: 4px;
}

.event-date {
    font-weight: bold;
    color: #1a365d;
}

.event-description {
    margin-top: 5px;
    color: #666;
}

/* Article and content styles */
.article-meta {
    color: #666;
    font-style: italic;
    margin-bottom: 0.8em;
    font-size: 0.9em;
}

.article-excerpt {
    color: #666;
    margin: 0.5em 0 1em 0;
}

.articles-list {
    list-style: none;
    padding: 0;
}

.articles-list li {
    margin-bottom: 1.2em;
    padding: 0.8em;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.articles-list h3 {
    margin-top: 0;
}

.articles-list a {
    color: #1a365d;
    text-decoration: none;
    font-weight: 500;
}

.articles-list a:hover {
    color: #2b4c6f;
    text-decoration: underline;
}

/* Back navigation */
.back-link {
    display: inline-block;
    margin-bottom: 0.8em;
    color: #1a365d;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: #2b4c6f;
    text-decoration: underline;
}

.back-link::before {
    content: "← ";
}

/* General link styling */
a {
    color: #1a5899;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

a:hover {
    color: #2271c5;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Code styling */
code {
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Iframe styling */
iframe {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 12px 0;
    min-height: 75vh;
}

/* Responsive design */
@media (max-width: 600px) {
    .nav-header {
        gap: 1em;
        padding: 0.8em;
    }

    .nav-links {
        gap: 1em;
    }

    main {
        padding: 1em 3%;
    }

    .calendar-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Utility classes */
.center {
    text-align: center;
}

.mt-1 {
    margin-top: 1em;
}

.mb-1 {
    margin-bottom: 1em;
}

.mt-2 {
    margin-top: 2em;
}

.mb-2 {
    margin-bottom: 2em;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .nav-header,
    .social-button,
    .calendar-buttons {
        display: none;
    }
}