/**
 * Subpages Styles
 * Custom styles for all LRAL subpages
 */

/* ============================================
   Page Header
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #73281E;
}

.page-title {
    font-size: 2.5rem;
    color: #73281E;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Timeline (Vēsture page)
   ============================================ */
.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #73281E, #a0a0a0);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: calc(50% + 3rem);
}

.timeline-item:nth-child(even) {
    padding-left: 0;
    padding-right: calc(50% + 3rem);
    text-align: right;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: #73281E;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #73281E33;
    z-index: 2;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-year {
    font-size: 2rem;
    font-weight: 700;
    color: #73281E;
    margin-bottom: 0.5rem;
}

/* ============================================
   Board Members Grid (Valde page)
   ============================================ */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.board-member {
    transition: transform 0.3s ease;
}

.board-member:hover {
    transform: translateY(-5px);
}

.board-member-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.board-member-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #73281E, #a85b52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.avatar-placeholder {
    filter: brightness(0) invert(1);
}

.board-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #73281E;
    margin-bottom: 0.25rem;
}

.board-member-callsign {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #666;
    margin-bottom: 0.25rem;
}

.board-member-role {
    color: #73281E;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.board-member-bio {
    margin-bottom: 1rem;
    color: #666;
}

.board-member-contact a {
    color: #73281E;
    text-decoration: none;
    font-weight: 600;
}

.board-member-contact a:hover {
    text-decoration: underline;
}

/* ============================================
   Repeaters Table
   ============================================ */
.repeaters-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.repeaters-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.repeaters-table thead {
    background: #73281E;
    color: #fff;
}

.repeaters-table th,
.repeaters-table td {
    padding: 1rem;
    text-align: left;
}

.repeaters-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.repeaters-table tbody tr:hover {
    background: #f8f8f8;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-online {
    background: #4CAF50;
    color: #fff;
}

.status-maintenance {
    background: #FF9800;
    color: #fff;
}

.status-offline {
    background: #F44336;
    color: #fff;
}

/* ============================================
   Event Cards
   ============================================ */
.events-grid,
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    background: #73281E;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    padding: 1rem 0.5rem;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month,
.event-year {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1.25rem;
    color: #73281E;
    margin-bottom: 0.75rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.event-description {
    color: #666;
    margin-bottom: 1rem;
}

/* Past Events */
.past-event-card {
    flex-direction: column;
}

.event-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(115, 40, 30, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
}

.event-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #73281E;
    color: #73281E;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #73281E;
    color: #fff;
}

/* ============================================
   Process Steps / Guide Steps
   ============================================ */
.process-steps,
.usage-steps {
    max-width: 800px;
    margin: 2rem auto;
}

.process-step,
.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #73281E;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    color: #73281E;
    margin-bottom: 0.5rem;
}

/* Guide Steps Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-step {
    text-align: center;
    padding: 2rem;
}

/* ============================================
   Document Items
   ============================================ */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.document-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
}

.document-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h3 {
    color: #73281E;
    margin-bottom: 0.5rem;
}

.document-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.document-description {
    color: #666;
}

.document-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.access-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.access-badge.public {
    background: #4CAF50;
    color: #fff;
}

.access-badge.members {
    background: #FF9800;
    color: #fff;
}

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

.benefit-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #73281E;
    margin-bottom: 1rem;
}

/* ============================================
   Info Boxes & CTAs
   ============================================ */
.info-box,
.cta-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #73281E;
}

.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert-info {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    color: #1976D2;
}

.alert-success {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
    color: #388E3C;
}

/* ============================================
   Statutes / Legal Documents
   ============================================ */
.statute-item {
    margin-bottom: 2rem;
}

.statute-item h3 {
    color: #73281E;
    margin-bottom: 1rem;
}

.statute-item ul {
    list-style: disc;
    margin-left: 2rem;
}

.statute-item li {
    margin-bottom: 0.5rem;
}

.document-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
    font-style: italic;
    color: #666;
}

/* ============================================
   Mission Grid
   ============================================ */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-item {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mission-item h3 {
    color: #73281E;
    margin-bottom: 1rem;
}

/* ============================================
   Requirements Grid (Membership)
   ============================================ */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.requirement-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.requirement-card h3 {
    color: #73281E;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #73281E;
}

.requirement-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.requirement-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.requirement-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: 700;
}

.membership-fee {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #73281E;
}

/* ============================================
   Payment Info Box
   ============================================ */
.payment-box {
    background: #fff;
    padding: 2rem;
    margin-top: 2rem;
}

.payment-details {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.payment-details dt {
    font-weight: 700;
    color: #73281E;
}

.payment-details dd {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.payment-note {
    background: #FFF3CD;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #FFC107;
    margin-top: 1.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-marker {
        left: 20px;
        transform: none;
    }

    .board-grid,
    .events-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
    }

    .repeaters-table {
        font-size: 0.85rem;
    }

    .repeaters-table th,
    .repeaters-table td {
        padding: 0.5rem;
    }

    .process-step,
    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .document-item {
        flex-direction: column;
        text-align: center;
    }

    .document-actions {
        align-items: center;
    }
}
