/**
 * Developer Membership Pro - Frontend Styles
 */

/* Container */
.dmp-container {
    max-width: 600px;
    margin: 0 auto;
}

.dmp-full-width {
    max-width: 100%;
}

/* Forms */
.dmp-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dmp-form-row {
    margin-bottom: 20px;
}

.dmp-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.dmp-form-row input[type="text"],
.dmp-form-row input[type="email"],
.dmp-form-row input[type="password"],
.dmp-form-row input[type="number"],
.dmp-form-row input[type="tel"],
.dmp-form-row textarea,
.dmp-form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.dmp-form-row input:focus,
.dmp-form-row textarea:focus,
.dmp-form-row select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.dmp-form-row.has-error input,
.dmp-form-row.has-error textarea {
    border-color: #dc3545;
}

.dmp-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

/* Buttons */
.dmp-button {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
}

.dmp-button:hover {
    background: #0056b3;
    color: #fff;
}

.dmp-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dmp-button-block {
    display: block;
    width: 100%;
}

.dmp-button-secondary {
    background: #6c757d;
}

.dmp-button-secondary:hover {
    background: #545b62;
}

.dmp-button-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.dmp-button-outline:hover {
    background: #007bff;
    color: #fff;
}

.dmp-button-danger {
    background: #dc3545;
}

.dmp-button-danger:hover {
    background: #c82333;
}

/* Notices */
.dmp-notice {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.dmp-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dmp-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dmp-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.dmp-notice-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Memberships Grid */
.dmp-memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Membership Card */
.dmp-membership-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dmp-membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.dmp-membership-card.featured {
    border: 2px solid #007bff;
}

.dmp-membership-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.dmp-membership-card.featured .dmp-membership-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.dmp-membership-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}

.dmp-membership-price {
    font-size: 18px;
}

.dmp-membership-price .amount {
    font-size: 48px;
    font-weight: 700;
}

.dmp-membership-price .currency {
    font-size: 24px;
    vertical-align: super;
}

.dmp-membership-price .period {
    opacity: 0.8;
}

.dmp-membership-body {
    padding: 30px;
}

.dmp-membership-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.dmp-membership-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.dmp-membership-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.dmp-membership-features li:last-child {
    border-bottom: none;
}

.dmp-membership-features .feature-icon {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.dmp-membership-features .included .feature-icon {
    color: #28a745;
}

.dmp-membership-features .excluded .feature-icon {
    color: #dc3545;
}

.dmp-membership-features .excluded {
    color: #999;
}

.dmp-membership-footer {
    padding: 0 30px 30px;
}

.dmp-membership-footer .dmp-button {
    display: block;
    width: 100%;
}

/* Account Page */
.dmp-account {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.dmp-account-nav {
    background: #fff;
    border-radius: 8px;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.dmp-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dmp-account-nav li a {
    display: block;
    padding: 12px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dmp-account-nav li a:hover,
.dmp-account-nav li a.active {
    background: #f8f9fa;
    color: #007bff;
    border-left-color: #007bff;
}

.dmp-account-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dmp-account-content h2 {
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Subscription Table */
.dmp-subscriptions-table {
    width: 100%;
    border-collapse: collapse;
}

.dmp-subscriptions-table th,
.dmp-subscriptions-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dmp-subscriptions-table th {
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
}

/* Status Badge */
.dmp-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.dmp-status-active {
    background: #d4edda;
    color: #155724;
}

.dmp-status-pending {
    background: #fff3cd;
    color: #856404;
}

.dmp-status-suspended {
    background: #f8d7da;
    color: #721c24;
}

.dmp-status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.dmp-status-expired {
    background: #f5c6cb;
    color: #721c24;
}

/* Checkout */
.dmp-checkout {
    max-width: 800px;
    margin: 0 auto;
}

.dmp-checkout-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.dmp-checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.dmp-checkout-item:last-child {
    border-bottom: none;
}

.dmp-checkout-total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
}

.dmp-payment-methods {
    margin-bottom: 30px;
}

.dmp-payment-method {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.dmp-payment-method:hover,
.dmp-payment-method.selected {
    border-color: #007bff;
    background: #f8f9fa;
}

.dmp-payment-method input[type="radio"] {
    margin-right: 10px;
}

.dmp-payment-method-label {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.dmp-payment-method-label img {
    height: 30px;
    margin-left: 15px;
}

.dmp-payment-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Stripe Elements */
#dmp-card-element {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

#dmp-card-errors {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

/* PayPal Container */
#paypal-button-container {
    margin-top: 20px;
}

/* Restriction Notice */
.dmp-restricted-content {
    background: #f8f9fa;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.dmp-restricted-content h3 {
    margin: 0 0 15px;
    color: #495057;
}

.dmp-restricted-content p {
    margin: 0 0 20px;
    color: #6c757d;
}

/* Login/Register Links */
.dmp-form-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dmp-form-links a {
    color: #007bff;
    text-decoration: none;
}

.dmp-form-links a:hover {
    text-decoration: underline;
}

/* Loading State */
.dmp-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.dmp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: dmp-spin 1s linear infinite;
}

@keyframes dmp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .dmp-account {
        grid-template-columns: 1fr;
    }
    
    .dmp-account-nav ul {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .dmp-account-nav li {
        flex: 1;
        text-align: center;
    }
    
    .dmp-account-nav li a {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .dmp-account-nav li a:hover,
    .dmp-account-nav li a.active {
        border-left: none;
        border-bottom-color: #007bff;
    }
    
    .dmp-memberships-grid {
        grid-template-columns: 1fr;
    }
    
    .dmp-subscriptions-table {
        font-size: 14px;
    }
    
    .dmp-subscriptions-table th,
    .dmp-subscriptions-table td {
        padding: 10px;
    }
    
    .dmp-form {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .dmp-account-nav,
    .dmp-button {
        display: none;
    }
    
    .dmp-account {
        display: block;
    }
    
    .dmp-account-content {
        box-shadow: none;
        padding: 0;
    }
}
/* Alternative Button Styles */
.dmp-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.dmp-btn:hover {
    text-decoration: none;
}

.dmp-btn-primary {
    background: #007bff;
    color: #fff;
}

.dmp-btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.dmp-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.dmp-btn-secondary:hover {
    background: #545b62;
    color: #fff;
}

.dmp-btn-danger {
    background: #dc3545;
    color: #fff;
}

.dmp-btn-danger:hover {
    background: #c82333;
    color: #fff;
}

.dmp-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.dmp-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.dmp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}