/* ==============================================
   Archive Template — archive.css
   ============================================== */

.archive-container {
    padding-top: 40px;
    padding-bottom: 40px;
}

.archive-header {
    margin-bottom: 32px;
}

.archive-header h1 {
    margin: 0 0 8px;
}

.archive-description {
    color: var(--color-text-light, #666);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.archive-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.archive-card-image-link {
    display: block;
}

.archive-card-image {
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.archive-card-body {
    padding: 20px;
}

.archive-card-title {
    font-size: 1.1em;
    margin: 0 0 8px;
}

.archive-card-title a {
    color: var(--color-text-dark, #111);
    text-decoration: none;
}

.archive-card-title a:hover {
    text-decoration: underline;
}

.archive-card-excerpt {
    color: var(--color-text-light, #666);
    font-size: 0.9em;
    margin: 0 0 12px;
}

.archive-card-date {
    font-size: 0.8em;
    color: var(--color-text-light, #666);
}

@media (max-width: 600px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   Browser Extension Archive — fw-ext-* classes
   ============================================== */

/* Page wrapper */
.fw-ext-archive-page {
    background: var(--color-bg-light, #f8fafc);
    min-height: 60vh;
}

/* Hero */
.fw-ext-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #7c3aed 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.fw-ext-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.fw-ext-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    backdrop-filter: blur(8px);
}

.fw-ext-hero-icon svg {
    color: #fff;
}

.fw-ext-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.fw-ext-hero-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px;
}

.fw-ext-hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.fw-ext-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.fw-ext-badge-chrome  { background: rgba(255, 255, 255, 0.2); color: #fff; }
.fw-ext-badge-firefox { background: rgba(255, 150, 50, 0.3);  color: #ffe4c4; }
.fw-ext-badge-edge    { background: rgba(50, 200, 200, 0.25); color: #b2f5ea; }

/* Archive container */
.fw-ext-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* Extensions grid */
.fw-ext-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Extension card */
.fw-ext-card {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.fw-ext-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
    border-color: #bfdbfe;
}

.fw-ext-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    gap: 16px;
}

/* Icon */
.fw-ext-card-icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.fw-ext-card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.fw-ext-card-icon-placeholder {
    color: #93c5fd;
}

/* Card body */
.fw-ext-card-body {
    flex: 1;
}

.fw-ext-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text-dark, #1e293b);
    margin: 0 0 8px;
    line-height: 1.3;
}

.fw-ext-card-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.fw-ext-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.fw-ext-card-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    transition: color 0.2s ease;
}

.fw-ext-card:hover .fw-ext-card-cta {
    color: #1d4ed8;
}

.fw-ext-card-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
}

.fw-ext-card-tag svg {
    color: #60a5fa;
    fill: #60a5fa;
}

/* Pagination */
.fw-ext-pagination {
    text-align: center;
}

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

.fw-ext-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fw-ext-pagination .page-numbers:hover,
.fw-ext-pagination .page-numbers.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* No posts */
.fw-ext-no-posts {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--color-border, #e2e8f0);
}

.fw-ext-no-posts-icon {
    width: 80px;
    height: 80px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #93c5fd;
}

.fw-ext-no-posts h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text-dark, #1e293b);
    margin: 0 0 10px;
}

.fw-ext-no-posts p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .fw-ext-grid { grid-template-columns: repeat(2, 1fr); }
    .fw-ext-hero-title { font-size: 2rem; }
}

@media (max-width: 640px) {
    .fw-ext-hero { padding: 48px 20px; }
    .fw-ext-hero-title { font-size: 1.625rem; }
    .fw-ext-hero-desc { font-size: 1rem; }
    .fw-ext-archive-container { padding: 32px 16px 48px; }
    .fw-ext-grid { grid-template-columns: 1fr; gap: 16px; }
    .fw-ext-card-link { padding: 20px; }
}

