/**
 * Weekly Calm Newsletter – Frontend Subscribe Form Styles
 */

.wcn-subscribe-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wcn-subscribe-form .wcn-form-field {
    margin-bottom: 12px;
}

.wcn-subscribe-form input[type="text"],
.wcn-subscribe-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    color: #2d3748;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.wcn-subscribe-form input:focus {
    outline: none;
    border-color: #5b7a9d;
    box-shadow: 0 0 0 3px rgba(91, 122, 157, 0.15);
    background: #ffffff;
}

.wcn-subscribe-form button {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #3d5a80;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wcn-subscribe-form button:hover {
    background: #2d4a6e;
}

.wcn-subscribe-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wcn-subscribe-message {
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.wcn-subscribe-message.success {
    display: block;
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.wcn-subscribe-message.error {
    display: block;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* ========================================================================
   Newsletter Archive – List View
   ======================================================================== */

.wcn-archive-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wcn-archive-empty {
    text-align: center;
    padding: 48px 20px;
    color: #8899aa;
    font-size: 16px;
}

.wcn-archive-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wcn-archive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
    margin-bottom: 10px;
}

.wcn-archive-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.wcn-archive-content {
    flex: 1;
    min-width: 0;
}

.wcn-archive-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px;
    line-height: 1.4;
}

.wcn-archive-item:hover .wcn-archive-title {
    color: #3d5a80;
}

.wcn-archive-excerpt {
    font-size: 14px;
    color: #718096;
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wcn-archive-date {
    font-size: 13px;
    color: #a0aec0;
    letter-spacing: 0.01em;
}

.wcn-archive-arrow {
    flex-shrink: 0;
    color: #cbd5e0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.wcn-archive-item:hover .wcn-archive-arrow {
    color: #3d5a80;
    transform: translateX(3px);
}

/* ========================================================================
   Newsletter Archive – Pagination
   ======================================================================== */

.wcn-archive-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
}

.wcn-archive-pagination a,
.wcn-archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    background: #edf2f7;
    transition: all 0.15s ease;
}

.wcn-archive-pagination a:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.wcn-archive-pagination .current {
    background: #3d5a80;
    color: #ffffff;
}

/* ========================================================================
   Newsletter Archive – Single View
   ======================================================================== */

.wcn-archive-single-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.wcn-archive-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #3d5a80;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.15s ease;
}

.wcn-archive-back:hover {
    color: #2d4a6e;
}

.wcn-archive-back svg {
    transition: transform 0.15s ease;
}

.wcn-archive-back:hover svg {
    transform: translateX(-3px);
}

.wcn-archive-single-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.wcn-archive-single-date {
    font-size: 14px;
    color: #a0aec0;
}

.wcn-archive-single-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.wcn-archive-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #3d5a80;
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wcn-archive-pdf-btn:hover {
    background: #3d5a80;
    color: #ffffff;
    border-color: #3d5a80;
    box-shadow: 0 2px 8px rgba(61, 90, 128, 0.25);
    transform: translateY(-1px);
}

.wcn-archive-pdf-btn svg {
    transition: transform 0.2s ease;
}

.wcn-archive-pdf-btn:hover svg {
    transform: translateY(2px);
}

.wcn-archive-single-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wcn-archive-iframe {
    display: block;
    width: 100%;
    border: none;
    min-height: 400px;
}

/* ========================================================================
   Newsletter Archive – Error State
   ======================================================================== */

.wcn-archive-error {
    text-align: center;
    padding: 48px 20px;
}

.wcn-archive-error p {
    font-size: 16px;
    color: #718096;
    margin-bottom: 20px;
}

.wcn-archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: #3d5a80;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.wcn-archive-btn:hover {
    background: #2d4a6e;
    color: #ffffff;
}

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 600px) {
    .wcn-archive-item {
        padding: 16px;
    }

    .wcn-archive-title {
        font-size: 15px;
    }

    .wcn-archive-single-title {
        font-size: 22px;
    }

    .wcn-archive-single-content {
        padding: 20px 16px;
    }
}