/* Council Reader - Main Stylesheet */

/* ==========================================================================
   Base / Reset
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f5f5;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

footer.index-footer {
    font-size: 1.125rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* ==========================================================================
   Components: Breadcrumb
   ========================================================================== */

.breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Components: Tags
   ========================================================================== */

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
}

.tag.council-file-tag {
    background: #e3f2fd;
    color: #1565c0;
}

.tag.district {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* ==========================================================================
   Index Page: Header
   ========================================================================== */

.index-header {
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.header-link {
    font-size: 0.875rem;
    color: #666;
}

.header-link:hover {
    color: #0066cc;
}

.tagline {
    font-size: 1.125rem;
    color: #666;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 400px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.875rem;
}

.newsletter-form input[type="submit"] {
    padding: 0.5rem 1rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
}

.newsletter-form input[type="submit"]:hover {
    background: #0052a3;
}

.newsletter-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Index Page: Meetings Sections
   ========================================================================== */

.meetings-section {
    margin-bottom: 2.5rem;
}

.meetings-section h2 {
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meeting-card {
    padding: 1rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
}

.meeting-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #0066cc;
    text-decoration: none;
}

.meeting-card-upcoming {
    border-left: 3px solid #f59e0b;
}

.meeting-card-summarized {
    border-left: 3px solid #10b981;
}

.meeting-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.meeting-badge-summarized {
    background: #d1fae5;
    color: #065f46;
}

.meeting-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.meeting-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.meeting-stats {
    font-size: 0.8125rem;
    color: #999;
}

.show-more-note {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* ==========================================================================
   Meeting Page: Meta & Links
   ========================================================================== */

.meeting-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.meeting-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.meeting-links a {
    font-size: 0.875rem;
    color: #0066cc;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border: 1px solid #0066cc;
    border-radius: 4px;
    transition: all 0.2s;
}

.meeting-links a:hover {
    background: #0066cc;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Meeting Page: Video Summary
   ========================================================================== */

.video-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.video-summary h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.video-summary-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #333;
}

.video-summary-content h3.summary-section {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e0e0e0;
}

.video-summary-content h3.summary-section:first-child {
    margin-top: 0;
}

.video-summary-content p {
    margin-bottom: 1rem;
}

.video-summary-content ul {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
}

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

/* ==========================================================================
   Meeting Page: Agenda Sections
   ========================================================================== */

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid #0066cc;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title:hover {
    color: #0066cc;
}

.section-title::before {
    content: "▼";
    font-size: 0.75rem;
    transition: transform 0.2s;
    display: inline-block;
}

.section[open] .section-title::before {
    transform: rotate(0deg);
}

.section:not([open]) .section-title::before {
    transform: rotate(-90deg);
}

.section-content {
    margin-top: 1rem;
}

/* ==========================================================================
   Meeting Page: Item Cards
   ========================================================================== */

.item-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.item-card-clickable {
    cursor: pointer;
}

.item-card-clickable:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #0066cc;
}

.item-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-header {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.item-number {
    font-weight: 600;
    color: #0066cc;
    font-size: 0.875rem;
}

.item-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-title {
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.item-title strong {
    font-weight: 700;
}

.item-title em {
    font-style: italic;
}

/* ==========================================================================
   Meeting Page: Item Details & Attachments
   ========================================================================== */

.item-details,
.item-attachments {
    margin-top: 0.75rem;
}

.item-details summary,
.item-attachments summary {
    font-size: 0.875rem;
    color: #0066cc;
    cursor: pointer;
    user-select: none;
}

.item-details summary {
    font-weight: 500;
}

.item-details summary:hover,
.item-attachments summary:hover {
    text-decoration: underline;
}

.item-details-content {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-left: 3px solid #e0e0e0;
    font-size: 0.875rem;
    color: #444;
    line-height: 1.6;
}

.attachment-list {
    margin-top: 0.5rem;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.document-title {
    font-size: 0.875rem;
    color: #1a1a1a;
    font-weight: 500;
}

.document-links {
    display: flex;
    gap: 0.5rem;
}

.document-action {
    font-size: 0.8125rem;
    text-decoration: none;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

.document-action.view {
    color: #0066cc;
    border: 1px solid #0066cc;
    background: transparent;
}

.document-action.view:hover {
    background: #0066cc;
    color: #fff;
}

.document-action.download {
    color: #fff;
    background: #0066cc;
    border: 1px solid #0066cc;
}

.document-action.download:hover {
    background: #0052a3;
    border-color: #0052a3;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.empty-section {
    font-size: 0.875rem;
    color: #999;
    font-style: italic;
    padding: 0.5rem 0.75rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .meeting-meta {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .item-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tagline {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-content {
    max-width: 650px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.about-section p {
    margin-bottom: 1rem;
    color: #333;
}
