/**
 * GLLC Mitgliederbereich - Frontend Styles
 */

/* Dashboard Container */
.gllc-mb-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gllc-mb-dashboard-header {
    margin-bottom: 30px;
}

.gllc-mb-dashboard-header h2 {
    margin-bottom: 10px;
}

.gllc-mb-welcome {
    color: #666;
    font-size: 16px;
}

/* Products Grid */
.gllc-mb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Product Card */
.gllc-mb-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.gllc-mb-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gllc-mb-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.gllc-mb-product-header h3 {
    margin: 0;
    font-size: 18px;
}

.gllc-mb-product-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.gllc-mb-status-active .gllc-mb-product-status,
.gllc-mb-product-status.gllc-mb-status-active {
    background: #d4edda;
    color: #155724;
}

.gllc-mb-status-paused .gllc-mb-product-status,
.gllc-mb-product-status.gllc-mb-status-paused {
    background: #fff3cd;
    color: #856404;
}

.gllc-mb-status-expired .gllc-mb-product-status,
.gllc-mb-product-status.gllc-mb-status-expired {
    background: #f8d7da;
    color: #721c24;
}

.gllc-mb-status-blocked .gllc-mb-product-status,
.gllc-mb-product-status.gllc-mb-status-blocked {
    background: #f8d7da;
    color: #721c24;
}

/* Progress Bar */
.gllc-mb-product-progress {
    margin-bottom: 15px;
}

.gllc-mb-progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.gllc-mb-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.gllc-mb-progress-text {
    font-size: 13px;
    color: #666;
}

/* Product Meta */
.gllc-mb-product-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.gllc-mb-meta-item {
    display: block;
    margin-bottom: 5px;
}

.gllc-mb-meta-item strong {
    color: #333;
}

/* Product Link */
.gllc-mb-product-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.gllc-mb-product-link:hover {
    background: #005a87;
    color: #fff;
}

.gllc-mb-product-inactive {
    display: inline-block;
    padding: 10px 20px;
    background: #e0e0e0;
    color: #666;
    border-radius: 4px;
}

/* Product Detail */
.gllc-mb-product-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.gllc-mb-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.gllc-mb-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.gllc-mb-breadcrumb a:hover {
    text-decoration: underline;
}

.gllc-mb-breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.gllc-mb-product-description {
    color: #666;
    margin-bottom: 20px;
}

.gllc-mb-product-progress-detail {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Content List */
.gllc-mb-content-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.gllc-mb-content-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    gap: 15px;
}

.gllc-mb-content-item:last-child {
    border-bottom: none;
}

.gllc-mb-content-item.gllc-mb-unlocked {
    background: #fff;
}

.gllc-mb-content-item.gllc-mb-locked {
    background: #f9f9f9;
}

.gllc-mb-content-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.gllc-mb-content-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.gllc-mb-unlocked .gllc-mb-content-icon .dashicons {
    color: #46b450;
}

.gllc-mb-locked .gllc-mb-content-icon .dashicons {
    color: #999;
}

.gllc-mb-content-info {
    flex-grow: 1;
}

.gllc-mb-content-title {
    display: block;
    font-weight: 500;
    color: #0073aa;
    text-decoration: none;
}

.gllc-mb-content-title:hover {
    text-decoration: underline;
}

.gllc-mb-content-locked-title {
    color: #666;
}

.gllc-mb-unlock-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 3px;
}

.gllc-mb-content-action {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.gllc-mb-content-action:hover {
    background: #005a87;
    color: #fff;
}

/* Back Link */
.gllc-mb-back-link {
    margin-top: 30px;
}

.gllc-mb-back-link a {
    color: #0073aa;
    text-decoration: none;
}

.gllc-mb-back-link a:hover {
    text-decoration: underline;
}

/* Dashboard Footer */
.gllc-mb-dashboard-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.gllc-mb-logout-link {
    color: #666;
    text-decoration: none;
}

.gllc-mb-logout-link:hover {
    color: #333;
}

/* Login Form */
.gllc-mb-login-form {
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 30px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

.gllc-mb-form-field {
    margin-bottom: 20px !important;
}

.gllc-mb-form-field label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
}

.gllc-mb-login-form .gllc-mb-input,
.gllc-mb-login-form input[type="text"],
.gllc-mb-login-form input[type="password"] {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

.gllc-mb-login-form .gllc-mb-input:focus,
.gllc-mb-login-form input[type="text"]:focus,
.gllc-mb-login-form input[type="password"]:focus {
    border-color: #0073aa !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2) !important;
}

.gllc-mb-remember {
    font-size: 14px !important;
}

.gllc-mb-form-submit {
    margin-top: 20px !important;
}

.gllc-mb-login-form .gllc-mb-button,
.gllc-mb-login-form button[type="submit"] {
    width: 100% !important;
    padding: 12px 20px !important;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.gllc-mb-login-form .gllc-mb-button:hover,
.gllc-mb-login-form button[type="submit"]:hover {
    background: #005a87 !important;
    color: #fff !important;
}

.gllc-mb-form-links {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.gllc-mb-form-links a {
    color: #0073aa;
    text-decoration: none;
}

.gllc-mb-form-links a:hover {
    text-decoration: underline;
}

/* Login Error */
.gllc-mb-login-error,
.gllc-mb-access-denied {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Login Required */
.gllc-mb-login-required {
    text-align: center;
    padding: 40px 20px;
}

.gllc-mb-login-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.gllc-mb-login-button:hover {
    background: #005a87;
    color: #fff;
}

/* Already Logged In */
.gllc-mb-already-logged-in {
    text-align: center;
    padding: 20px;
}

/* Protected Content Message */
.gllc-mb-protected-message {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.gllc-mb-login-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.gllc-mb-login-link:hover {
    background: #005a87;
    color: #fff;
}

/* Restricted Content */
.gllc-mb-restricted-content {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.gllc-mb-restricted-content h3 {
    margin-top: 0;
    color: #856404;
}

.gllc-mb-restricted-content ul {
    margin-bottom: 0;
}

/* No Memberships */
.gllc-mb-no-memberships {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Product Content List (Shortcode) */
.gllc-mb-product-content-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.gllc-mb-product-content-list .gllc-mb-content-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
}

.gllc-mb-product-content-list .gllc-mb-content-item:last-child {
    border-bottom: none;
}

.gllc-mb-content-link {
    color: #0073aa;
    text-decoration: none;
}

.gllc-mb-content-link:hover {
    text-decoration: underline;
}

.gllc-mb-content-title-locked {
    color: #666;
}

/* User Products List */
.gllc-mb-user-products {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gllc-mb-user-product {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.gllc-mb-user-product:last-child {
    border-bottom: none;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .gllc-mb-products-grid {
        grid-template-columns: 1fr;
    }

    .gllc-mb-product-header {
        flex-direction: column;
        gap: 10px;
    }

    .gllc-mb-content-item {
        flex-wrap: wrap;
    }

    .gllc-mb-content-action {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .gllc-mb-login-form {
        padding: 20px;
    }
}
