/* Premium Cards Frontend Styles */

.premium-card-status {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-status-header h3 {
    margin: 0;
    color: #2c3338;
    font-size: 1.5em;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-none {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.card-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

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

.detail-label {
    font-weight: 600;
    color: #666;
    flex: 1;
}

.detail-value {
    flex: 1;
    text-align: right;
    color: #2c3338;
}

.detail-value.code {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    color: #0073aa;
    font-weight: 600;
}

.detail-value.discount {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

.expiry-warning {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 8px;
}

.card-barcode {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.card-barcode h4 {
    margin: 0 0 15px 0;
    color: #2c3338;
}

.card-barcode img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

.renewal-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.renewal-section h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.renewal-section p {
    margin: 0 0 15px 0;
    color: #856404;
}

.renewal-products {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.renewal-products .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.2s;
}

.renewal-products .button:hover {
    background: #005a87;
    color: white;
}

.card-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-actions .button {
    padding: 10px 20px;
    border: 1px solid #0073aa;
    background: white;
    color: #0073aa;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.card-actions .button:hover {
    background: #0073aa;
    color: white;
}

.card-actions .button.button-primary {
    background: #0073aa;
    color: white;
}

.card-actions .button.button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.premium-card-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    border: 1px solid transparent;
}

.premium-card-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.premium-card-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.premium-card-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.premium-card-activation {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.premium-card-activation h4 {
    margin: 0 0 20px 0;
    color: #2c3338;
}

.activation-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3338;
}

.form-group input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.activation-help {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.activation-help p {
    margin: 0 0 10px 0;
}

.activation-help ul {
    margin: 0;
    padding-left: 20px;
}

.activation-help li {
    margin: 5px 0;
}

.premium-card-products {
    margin: 30px 0;
}

.premium-card-products h3 {
    margin: 0 0 20px 0;
    color: #2c3338;
}

.products.grid {
    display: grid;
    gap: 20px;
}

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

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

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

.product {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product h4 {
    margin: 0 0 10px 0;
    color: #2c3338;
}

.product .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.product .button {
    margin-top: 15px;
}

.benefits-list {
    margin: 20px 0;
}

.benefits-list h4 {
    margin: 0 0 15px 0;
    color: #2c3338;
}

.benefits-list ul {
    margin: 0;
    padding-left: 20px;
}

.benefits-list li {
    margin: 8px 0;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .premium-card-status {
        padding: 20px;
        margin: 20px 0;
    }

    .card-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .detail-value {
        text-align: left;
    }

    .card-actions {
        flex-direction: column;
    }

    .renewal-products {
        flex-direction: column;
    }

    .products.grid.columns-2,
    .products.grid.columns-3,
    .products.grid.columns-4 {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .form-group input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .premium-card-status {
        padding: 15px;
    }

    .card-status-header h3 {
        font-size: 1.3em;
    }

    .status-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .card-barcode {
        padding: 15px;
    }

    .renewal-section {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .premium-card-status {
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .card-actions,
    .renewal-section,
    .activation-help {
        display: none;
    }

    .card-barcode {
        page-break-inside: avoid;
    }

    .detail-value.code {
        font-size: 1.2em;
    }
}

/* Animation for status changes */
@keyframes premiumCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-card-status {
    animation: premiumCardFadeIn 0.3s ease-out;
}

/* Focus styles for accessibility */
.premium-card-status *:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .premium-card-status {
        border: 2px solid;
    }

    .detail-row {
        border-bottom: 2px solid;
    }
}