/*
Theme Name: Astra Child - Årebladet
Template: astra
Version: 1.0
*/

/* Årebladet Styles */

/* Latest Issue */
.latest-issue {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.latest-issue-cover img {
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.latest-issue-info h2 {
    margin-top: 0;
}
.latest-issue-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0066cc;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
}
.button:hover {
    background: #0055aa;
}
.button-secondary {
    background: #666;
}
.button-secondary:hover {
    background: #555;
}

/* Next Deadline */
.next-deadline {
    background: #f5f5f5;
    padding: 1.5rem;
    border-left: 4px solid #0066cc;
    margin-bottom: 2rem;
}
.next-deadline p {
    margin: 0 0 1rem 0;
}

/* Live Banner */
.live-banner {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin: 2rem 0;
}
.live-banner h2 {
    color: #fff;
    margin-top: 0;
}
.live-banner .button {
    background: #ff6b6b;
}
.live-banner .button:hover {
    background: #ee5a5a;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.archive-item {
    text-align: center;
}
.archive-item img {
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}
.archive-item-title {
    display: block;
    font-weight: 600;
}
.archive-download {
    font-size: 0.875rem;
    color: #666;
}

/* Tables */
.upcoming-issues,
.full-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}
.upcoming-issues th,
.upcoming-issues td,
.full-schedule th,
.full-schedule td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.upcoming-issues th,
.full-schedule th {
    background: #f5f5f5;
    font-weight: 600;
}
.past-issue {
    opacity: 0.5;
}

/* Latest Articles */
.latest-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.article-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.article-content {
    padding: 1rem;
}
.article-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}
.article-content h3 a {
    color: inherit;
    text-decoration: none;
}
.article-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .latest-issue {
        flex-direction: column;
    }
    .latest-issue-cover img {
        max-width: 100%;
    }
}

/* Footer Menu */
.site-footer-menu {
    text-align: center;
    padding: 1rem 0;
}
.footer-navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.footer-navigation li a {
    color: #666;
    text-decoration: none;
}
.footer-navigation li a:hover {
    color: #0066cc;
}

/* Article Meta Box */
.article-meta-box {
    margin-top: 2rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
}
.article-meta-box p {
    margin: 0.5rem 0;
}
.article-meta-box a {
    color: #0066cc;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.price-table th {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 2px solid #1a1a2e;
    font-weight: 600;
}
.price-table th:last-child {
    text-align: right;
}
.price-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #eee;
}
.price-table td:first-child {
    font-weight: 600;
}
.price-table td:last-child {
    text-align: right;
    white-space: nowrap;
}
.price-table tr:hover {
    background: #f9f9f9;
}
