/* Newspaper Subscriptions - Frontend Styles */

/* Subscription Plans */
.nsp-subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.nsp-plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.nsp-plan-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.nsp-plan-featured {
    border-color: #2271b1;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.nsp-plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #2271b1;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.nsp-plan-card h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.nsp-plan-price {
    margin: 20px 0;
}

.nsp-currency {
    font-size: 24px;
    vertical-align: top;
}

.nsp-amount {
    font-size: 48px;
    font-weight: bold;
    color: #2271b1;
}

.nsp-period {
    font-size: 16px;
    color: #666;
}

.nsp-trial-notice {
    background: #d1ecf1;
    color: #0c5460;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: 600;
}

.nsp-savings-notice {
    background: #d4edda;
    color: #155724;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: 600;
}

.nsp-plan-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.nsp-plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.nsp-plan-features li:last-child {
    border-bottom: none;
}

/* Buttons */
.nsp-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nsp-btn-primary {
    background: #2271b1;
    color: #fff;
}

.nsp-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.nsp-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.nsp-btn-secondary:hover {
    background: #dcdcde;
}

/* Paywall */
.nsp-paywall {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
}

.nsp-paywall-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.nsp-paywall h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
}

.nsp-paywall p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.nsp-paywall-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Dashboard */
.nsp-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.nsp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.nsp-dashboard-header h2 {
    margin: 0;
}

.nsp-logout-link {
    color: #2271b1;
    text-decoration: none;
}

.nsp-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.nsp-dashboard-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.nsp-dashboard-section h3,
.nsp-dashboard-section h4 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Subscription Card */
.nsp-subscription-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.nsp-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.nsp-info-row:last-child {
    border-bottom: none;
}

.nsp-info-label {
    font-weight: 600;
    color: #666;
}

.nsp-info-value {
    color: #333;
}

.nsp-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.nsp-status-active {
    background: #d4edda;
    color: #155724;
}

.nsp-status-trialing {
    background: #d1ecf1;
    color: #0c5460;
}

.nsp-status-canceled {
    background: #f8d7da;
    color: #721c24;
}

.nsp-subscription-actions {
    margin-top: 20px;
    text-align: center;
}

/* Issues List */
.nsp-issues-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nsp-issue-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nsp-issue-item:hover {
    background: #e9ecef;
}

.nsp-issue-thumbnail {
    flex-shrink: 0;
}

.nsp-issue-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.nsp-issue-info {
    flex: 1;
}

.nsp-issue-title {
    margin: 0 0 8px 0;
}

.nsp-issue-title a {
    color: #2271b1;
    text-decoration: none;
}

.nsp-issue-title a:hover {
    text-decoration: underline;
}

.nsp-issue-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.nsp-issue-date {
    font-size: 13px;
    color: #999;
}

/* Quick Stats */
.nsp-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nsp-stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.nsp-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
}

.nsp-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Account Links */
.nsp-account-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nsp-account-links li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nsp-account-links li:last-child {
    border-bottom: none;
}

.nsp-account-links a {
    color: #2271b1;
    text-decoration: none;
}

.nsp-account-links a:hover {
    text-decoration: underline;
}

/* Auth Forms */
.nsp-auth-forms {
    max-width: 400px;
    margin: 0 auto;
}

.nsp-auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.nsp-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.nsp-tab-btn.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.nsp-tab-content {
    display: none;
}

.nsp-tab-content.active {
    display: block;
}

.nsp-auth-forms input[type="text"],
.nsp-auth-forms input[type="email"],
.nsp-auth-forms input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.nsp-auth-forms label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.nsp-auth-forms p {
    margin-bottom: 15px;
}

/* Notices */
.nsp-dashboard-notice {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.nsp-notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.nsp-dashboard-notice h3 {
    margin: 0 0 10px 0;
}

/* Custom Gutenberg Blocks */
.nsp-article-block {
    margin: 30px 0;
}

.nsp-article-image {
    margin-bottom: 20px;
}

.nsp-article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.nsp-article-title {
    font-size: 28px;
    margin: 0 0 10px 0;
}

.nsp-article-byline {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.nsp-headline {
    font-family: serif;
    line-height: 1.2;
    margin: 20px 0;
}

.nsp-headline-large {
    font-size: 48px;
}

.nsp-headline-medium {
    font-size: 36px;
}

.nsp-headline-small {
    font-size: 24px;
}

.nsp-align-left {
    text-align: left;
}

.nsp-align-center {
    text-align: center;
}

.nsp-align-right {
    text-align: right;
}

.nsp-byline {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.nsp-byline-avatar img {
    border-radius: 50%;
}

.nsp-byline-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nsp-byline-author {
    font-weight: 600;
}

.nsp-byline-date {
    font-size: 14px;
    color: #666;
}

/* Featured Article */
.nsp-featured-article {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
}

.nsp-featured-image img {
    width: 100%;
    height: auto;
}

.nsp-featured-content {
    padding: 30px;
}

.nsp-featured-title {
    font-size: 32px;
    margin: 0 0 15px 0;
}

.nsp-featured-title a {
    color: #333;
    text-decoration: none;
}

.nsp-featured-title a:hover {
    color: #2271b1;
}

.nsp-featured-excerpt {
    color: #666;
    margin-bottom: 20px;
}

.nsp-read-more {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.nsp-read-more:hover {
    text-decoration: underline;
}

/* Article Grid */
.nsp-article-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.nsp-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.nsp-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nsp-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.nsp-grid-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.nsp-grid-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nsp-grid-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.nsp-grid-title {
    margin: 15px 15px 10px 15px;
    font-size: 18px;
}

.nsp-grid-title a {
    color: #333;
    text-decoration: none;
}

.nsp-grid-title a:hover {
    color: #2271b1;
}

.nsp-grid-excerpt {
    margin: 0 15px;
    color: #666;
    font-size: 14px;
}

.nsp-grid-link {
    display: block;
    margin: 15px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.nsp-grid-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nsp-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .nsp-subscription-plans {
        grid-template-columns: 1fr;
    }
    
    .nsp-article-grid {
        grid-template-columns: 1fr !important;
    }
    
    .nsp-issue-item {
        flex-direction: column;
    }
    
    .nsp-issue-thumbnail img {
        width: 100%;
        height: auto;
    }
}
