/**
 * Settings page styles.
 */

/* Grid layout for settings page */
.nekorekten-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media screen and (max-width: 782px) {
    .nekorekten-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Unified box styles */
.nekorekten-settings-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 0;
}

.nekorekten-settings-box .box-h2 {
    margin: 0;
    padding: 12px 20px;
    border-bottom: 1px solid #ccd0d4;
    font-size: 14px;
    font-weight: 600;
    background: #f6f7f7;
    position: relative;
}

/* Refresh button in box header */
.nekorekten-refresh-profile {
    font-size: 12px;
    line-height: 1.5;
    height: 26px;
    padding: 0 8px;
}

.nekorekten-refresh-profile .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 2px;
    vertical-align: middle;
}

.nekorekten-refresh-profile:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nekorekten-box-content {
    padding: 20px;
}

/* Settings form specific styles */
.nekorekten-settings-box form {
    margin: 0;
}

.nekorekten-settings-box .form-table {
    margin-top: 0;
}

.nekorekten-settings-box .submit {
    margin-top: 0;
    padding-top: 0;
}

/* Profile box specific styles */
.nekorekten-loading {
    text-align: center;
    padding: 20px;
}

.nekorekten-loading .spinner {
    float: none;
    margin: 0 auto 10px;
}

.nekorekten-loading p {
    margin: 0;
    color: #646970;
}

.nekorekten-profile-error {
    padding: 12px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    margin: 0;
}

.nekorekten-profile-error .error-message {
    margin: 0;
    color: #d63638;
    font-weight: 600;
}

.nekorekten-profile-data table {
    margin: 0;
}

.nekorekten-profile-data table th {
    width: 180px;
    font-weight: 600;
    padding: 12px;
    background: #f6f7f7;
}

.nekorekten-profile-data table td {
    padding: 12px;
}

.nekorekten-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Active subscription - green */
.nekorekten-status-badge.status-active {
    background: #d4edda;
    color: #155724;
}

/* Expired subscription - orange/warning */
.nekorekten-status-badge.status-expired {
    background: #fff3cd;
    color: #856404;
}

/* Canceled subscription - red */
.nekorekten-status-badge.status-canceled {
    background: #f8d7da;
    color: #721c24;
}

/* Wrong payment - red/error */
.nekorekten-status-badge.status-wrong-payment {
    background: #f8d7da;
    color: #721c24;
}

/* Never subscribed - gray/neutral */
.nekorekten-status-badge.status-never-subscribed {
    background: #e2e3e5;
    color: #383d41;
}

/* Unknown status - gray */
.nekorekten-status-badge.status-unknown {
    background: #e2e3e5;
    color: #383d41;
}

/* Legacy statuses (keep for backwards compatibility) */
.nekorekten-status-badge.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.nekorekten-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.nekorekten-status-badge.status-trial {
    background: #d1ecf1;
    color: #0c5460;
}

/* Free plan - blue/info */
.nekorekten-status-badge.status-free {
    background: #d1ecf1;
    color: #0c5460;
}

/* Premium feature styles */
.nekorekten-premium-feature {
    opacity: 0.6;
}

.nekorekten-premium-notice {
    color: #856404;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 8px 12px;
    margin-top: 8px !important;
    font-size: 13px;
}

.nekorekten-premium-notice .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.nekorekten-premium-notice a {
    text-decoration: underline;
    font-weight: 600;
}

.nekorekten-premium-notice a:hover {
    color: #664d03;
}

/* Paid Features Section (inside Account Info box) */
.nekorekten-paid-features-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e2e3e5;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

.nekorekten-paid-features-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.nekorekten-paid-features-header .dashicons-star-filled {
    color: #ffb900;
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.nekorekten-paid-features-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.nekorekten-paid-features-section .upgrade-description {
    font-size: 14px;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0.95;
}

.nekorekten-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.nekorekten-features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.nekorekten-features-list li:last-child {
    border-bottom: none;
}

.nekorekten-features-list .dashicons {
    color: #4ade80;
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.nekorekten-features-list strong {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.upgrade-button-container {
    text-align: center;
    margin-top: 20px;
}

.upgrade-button-container .button-hero {
    padding: 10px 24px;
    height: auto;
    font-size: 15px;
    background: #fff;
    color: #667eea;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.upgrade-button-container .button-hero:hover {
    background: #f0f0f0;
    color: #764ba2;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.upgrade-button-container .button-hero .dashicons {
    margin-right: 6px;
    vertical-align: middle;
}
