/**
 * Magazines Manager - Frontend Styles
 */

/* Breadcrumbs */
.td-crumb-container {
    margin-bottom: 20px;
    padding: 10px 0;
}

.entry-crumbs {
    font-size: 13px;
    color: #666;
}

.entry-crumbs a {
    color: #6c7fd8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-crumbs a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.td-bread-sep {
    margin: 0 8px;
    color: #999;
}

.td-icon-right {
    display: none;
}

/* Magazine Archive Grid */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.magazine-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.magazine-cover {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.magazine-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.magazine-item:hover .magazine-cover img {
    transform: scale(1.05);
}

.magazine-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.magazine-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.8);
}

.magazine-info {
    padding: 20px;
}

.magazine-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.magazine-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.magazine-title a:hover {
    color: #667eea;
}

/* Compact meta info */
.magazine-meta-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.magazine-issue {
    font-weight: 600;
    color: #667eea;
}

.magazine-meta-separator {
    color: #999;
    font-weight: 400;
}

.magazine-date-compact {
    color: #666;
}

/* Legacy styles (for backward compatibility) */
.magazine-issue-number,
.magazine-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.magazine-issue-number strong,
.magazine-date strong {
    color: #333;
    font-weight: 600;
}

.magazine-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
}

.magazine-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: nowrap;
}

.magazine-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    white-space: nowrap;
}

.magazine-btn-primary {
    background: #667eea;
    color: #fff;
}

.magazine-btn-primary:hover {
    background: #5568d3;
    color: #fff;
}

.magazine-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.magazine-btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

.magazine-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.magazine-btn-primary:hover,
.magazine-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* No Results */
.magazine-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 30px 0;
}

.magazine-no-results p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Single Magazine */
.magazine-single {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.magazine-single .entry-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 20px;
}

.magazine-single .entry-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #222;
}

.magazine-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.magazine-meta-item {
    font-size: 15px;
    color: #666;
}

.magazine-meta-item strong {
    color: #333;
    font-weight: 600;
    margin-right: 5px;
}

.magazine-featured-image {
    margin: 30px 0;
    text-align: center;
}

.magazine-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.magazine-single .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 30px 0;
}

.magazine-download-section {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.magazine-download-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #222;
}

.magazine-download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.magazine-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.magazine-btn-large .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.magazine-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0 20px 0;
    padding: 20px 0;
    border-top: 1px solid #e6e6e6;
    flex-wrap: wrap;
}

.magazine-navigation a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.magazine-navigation a:hover {
    color: #5568d3;
}

.nav-previous {
    flex: 1;
}

.nav-next {
    flex: 1;
    text-align: right;
}

.back-to-archive {
    text-align: center;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .magazine-single .entry-title {
        font-size: 24px;
    }

    .magazine-meta {
        flex-direction: column;
        gap: 10px;
    }

    .magazine-actions {
        flex-wrap: wrap;
    }

    .magazine-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
    }

    .magazine-download-buttons {
        flex-direction: column;
    }

    .magazine-btn-large {
        width: 100%;
    }

    .magazine-navigation {
        flex-direction: column;
    }

    .nav-next {
        text-align: left;
    }
}
