/**
 * Member Portal - Plugin Layout (eigenständiges Design)
 * Dieses Layout überschreibt Theme-Styles komplett
 */

/* Reset und Basis */
.gllc-mb-plugin-layout {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

/* GeneratePress Content Container - halbrunde Ecken unten */
.site-content,
.content-area,
.inside-article,
article.post,
article.page,
.entry-content {
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    overflow: hidden !important;
}

.gllc-mb-plugin-layout * {
    box-sizing: border-box !important;
}

/* Dashboard Container */
.gllc-mb-plugin-layout .gllc-mb-dashboard {
    max-width: 1000px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
}

.gllc-mb-plugin-layout .gllc-mb-dashboard-header {
    margin-bottom: 40px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

.gllc-mb-plugin-layout .gllc-mb-dashboard-header h2 {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 10px 0 !important;
}

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

/* Products Grid */
.gllc-mb-plugin-layout .gllc-mb-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 25px !important;
    margin-bottom: 40px !important;
}

/* Product Card */
.gllc-mb-plugin-layout .gllc-mb-product-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease !important;
}

.gllc-mb-plugin-layout .gllc-mb-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

.gllc-mb-plugin-layout .gllc-mb-product-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 20px !important;
}

.gllc-mb-plugin-layout .gllc-mb-product-header h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
}

/* Status Badges */
.gllc-mb-plugin-layout .gllc-mb-product-status {
    display: inline-block !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

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

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

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

/* Progress Bar */
.gllc-mb-plugin-layout .gllc-mb-progress {
    margin: 20px 0 !important;
}

.gllc-mb-plugin-layout .gllc-mb-progress-bar {
    height: 10px !important;
    background: #e9ecef !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.gllc-mb-plugin-layout .gllc-mb-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #0073aa, #00a0d2) !important;
    border-radius: 10px !important;
    transition: width 0.5s ease !important;
}

.gllc-mb-plugin-layout .gllc-mb-progress-text {
    font-size: 14px !important;
    color: #666 !important;
    margin-top: 8px !important;
}

/* Product Actions */
.gllc-mb-plugin-layout .gllc-mb-product-actions {
    margin-top: 20px !important;
}

.gllc-mb-plugin-layout .gllc-mb-product-link {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: #0073aa !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    transition: background 0.2s ease !important;
}

.gllc-mb-plugin-layout .gllc-mb-product-link:hover {
    background: #005a87 !important;
    color: #ffffff !important;
}

/* Login Form */
.gllc-mb-plugin-layout .gllc-mb-login-form {
    max-width: 420px !important;
    margin: 60px auto !important;
    padding: 40px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.gllc-mb-plugin-layout .gllc-mb-login-form h2 {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 30px 0 !important;
    text-align: center !important;
}

.gllc-mb-plugin-layout .gllc-mb-form-field {
    margin-bottom: 24px !important;
}

.gllc-mb-plugin-layout .gllc-mb-form-field label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #333 !important;
    font-size: 15px !important;
}

.gllc-mb-plugin-layout .gllc-mb-login-form input[type="text"],
.gllc-mb-plugin-layout .gllc-mb-login-form input[type="password"],
.gllc-mb-plugin-layout .gllc-mb-login-form input[type="email"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: #fafafa !important;
    transition: all 0.2s ease !important;
}

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

.gllc-mb-plugin-layout .gllc-mb-remember {
    font-size: 14px !important;
    color: #666 !important;
}

.gllc-mb-plugin-layout .gllc-mb-remember input[type="checkbox"] {
    margin-right: 8px !important;
}

.gllc-mb-plugin-layout .gllc-mb-form-submit {
    margin-top: 30px !important;
}

.gllc-mb-plugin-layout .gllc-mb-login-form button[type="submit"],
.gllc-mb-plugin-layout .gllc-mb-button {
    width: 100% !important;
    padding: 16px 24px !important;
    background: #0073aa !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

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

.gllc-mb-plugin-layout .gllc-mb-form-links {
    margin-top: 24px !important;
    text-align: center !important;
    font-size: 14px !important;
}

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

.gllc-mb-plugin-layout .gllc-mb-form-links a:hover {
    text-decoration: underline !important;
}

/* Login Error */
.gllc-mb-plugin-layout .gllc-mb-login-error {
    background: #f8d7da !important;
    color: #721c24 !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    margin-bottom: 24px !important;
    font-size: 14px !important;
    border-left: 4px solid #721c24 !important;
}

/* Content List */
.gllc-mb-plugin-layout .gllc-mb-content-list {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 30px 0 !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-item {
    display: flex !important;
    align-items: center !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    gap: 16px !important;
    transition: background 0.2s ease !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-item:last-child {
    border-bottom: none !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-item:hover {
    background: #f8f9fa !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-item.gllc-mb-unlocked {
    background: #ffffff !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-item.gllc-mb-locked {
    background: #f9f9f9 !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-icon {
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gllc-mb-plugin-layout .gllc-mb-unlocked .gllc-mb-content-icon {
    color: #28a745 !important;
}

.gllc-mb-plugin-layout .gllc-mb-locked .gllc-mb-content-icon {
    color: #999 !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-info {
    flex-grow: 1 !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-title {
    display: block !important;
    font-weight: 500 !important;
    color: #0073aa !important;
    text-decoration: none !important;
    font-size: 16px !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-title:hover {
    text-decoration: underline !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-locked-title {
    color: #666 !important;
    font-weight: 500 !important;
}

.gllc-mb-plugin-layout .gllc-mb-unlock-date {
    display: block !important;
    font-size: 13px !important;
    color: #999 !important;
    margin-top: 4px !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-action {
    flex-shrink: 0 !important;
    padding: 10px 20px !important;
    background: #0073aa !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: background 0.2s ease !important;
}

.gllc-mb-plugin-layout .gllc-mb-content-action:hover {
    background: #005a87 !important;
    color: #ffffff !important;
}

/* Protected Content Message */
.gllc-mb-plugin-layout .gllc-mb-protected-message,
.gllc-mb-plugin-layout .gllc-mb-access-denied {
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    text-align: center !important;
    margin: 20px 0 !important;
}

.gllc-mb-plugin-layout .gllc-mb-protected-message p,
.gllc-mb-plugin-layout .gllc-mb-access-denied p {
    color: #666 !important;
    margin-bottom: 20px !important;
}

.gllc-mb-plugin-layout .gllc-mb-login-link {
    display: inline-block !important;
    padding: 12px 28px !important;
    background: #0073aa !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

.gllc-mb-plugin-layout .gllc-mb-login-link:hover {
    background: #005a87 !important;
    color: #ffffff !important;
}

/* Dashboard Footer */
.gllc-mb-plugin-layout .gllc-mb-dashboard-footer {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e0e0e0 !important;
    text-align: center !important;
}

.gllc-mb-plugin-layout .gllc-mb-logout-link {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.gllc-mb-plugin-layout .gllc-mb-logout-link:hover {
    color: #333 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .gllc-mb-plugin-layout .gllc-mb-dashboard {
        margin: 20px auto !important;
        padding: 0 15px !important;
    }

    .gllc-mb-plugin-layout .gllc-mb-products-grid {
        grid-template-columns: 1fr !important;
    }

    .gllc-mb-plugin-layout .gllc-mb-login-form {
        margin: 30px auto !important;
        padding: 30px 20px !important;
    }

    .gllc-mb-plugin-layout .gllc-mb-content-item {
        flex-wrap: wrap !important;
        padding: 15px !important;
    }

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