/* Theofilos Library Style */
@import url('res/fonts/fonts-definitions.css');

:root {
    --primary-color: #1a3b5d;
    --secondary-color: #e9c46a;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --accent-color: #2a9d8f;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}


/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
}



.title h1 {
    font-family: 'Junicode', serif;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.title h2 {
    font-family: 'Signika', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

/* Main Content */
main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
    font-size: 16px;
}

.year-filter select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Issues Grid */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.issue-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.issue-cover {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.issue-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.issue-card:hover .issue-cover img {
    transform: scale(1.05);
}

.issue-info {
    padding: 15px;
}

.issue-date {
    font-family: 'Signika', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.issue-desc {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #666;
}

.read-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
}

.read-button:hover {
    background-color: #1d7d72;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 1.5rem;
    color: #666;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #666;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .filters {
        flex-direction: column;
        gap: 15px;
    }

    .search-box input {
        width: 100%;
    }
}
