/**
 * WP Membership 2 - Combined CSS
 * Konsolidované styly pro frontend, admin a profily
 * Verze: 2.1.0 - Kompletní konsolidace všech CSS souborů
 */

/* ==========================================================================
   BOOTSTRAP ICONS IMPORT
   ========================================================================== */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   MEMBERSHIP BADGES
   ========================================================================== */
.wpmc-membership-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    line-height: 1;
}

.wpmc-membership-badge .badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.wpmc-membership-badge .badge.zakladni {
    background: linear-gradient(135deg, #F19C27 0%, #E6931F 100%);
    border-color: rgba(255,255,255,0.3);
}

.wpmc-membership-badge .badge.rozsirene {
    background: linear-gradient(135deg, #FF602E 0%, #E6571F 100%);
    border-color: rgba(255,255,255,0.3);
}

.wpmc-membership-badge .badge::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    opacity: 0.8;
}

/* Bootstrap card compatibility */
.card {
    position: relative;
}

.card .wpmc-membership-badge {
    top: 15px;
    right: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .wpmc-membership-badge {
        position: static;
        display: inline-block;
        margin: 10px 0;
    }
    
    .wpmc-membership-badge .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   ADMIN STYLES
   ========================================================================== */
.wpmc-disabled label::after {
    content: " (nedostupné)";
    background: #f0f0f0;
    color: #666;
    border-radius: 3px;
    padding: 2px 6px;
    margin-left: 8px;
    font-size: 0.85em;
    display: inline-block;
    vertical-align: baseline;
}

.form-field.wpmc-disabled input[disabled],
.form-field.wpmc-disabled select[disabled],
.form-field.wpmc-disabled textarea[disabled] {
    opacity: 0.7;
}

.form-field.wpmc-disabled label {
    color: #666;
}

/* Webinar email sections */
.webinar-email-section {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.webinar-email-section h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.webinar-email-badge {
    display: inline-block;
    background: #f0f4ff;
    color: #1e4db7;
    border: 1px solid #d6e0ff;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 0.85em;
    border-radius: 12px;
}

.webinar-email-section .description {
    margin-top: 10px;
    color: #666;
}

/* ==========================================================================
   PROFILE ADMIN STYLES
   ========================================================================== */
.wpmc-status-active {
    color: #46b450;
    font-weight: bold;
}

.wpmc-status-inactive {
    color: #dc3232;
    font-weight: bold;
}

.wpmc-toggle-profile-status {
    font-size: 12px;
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.wpmc-toggle-profile-status:hover {
    color: #005177;
    border-bottom-color: #005177;
}

.wpmc-toggle-profile-status:focus {
    box-shadow: 0 0 0 2px #0073aa;
    outline: none;
}

.fixed .column-profile_status {
    width: 120px;
}

.wpmc-profile-toggle-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.wpmc-profile-toggle-btn:hover {
    background: #005177;
}

.wpmc-profile-toggle-btn.deactivate {
    background: #dc3232;
}

.wpmc-profile-toggle-btn.deactivate:hover {
    background: #b32d2e;
}

.wpmc-profile-status-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

.wpmc-profile-status-notice.inactive {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.wpmc-profile-status-notice.active {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* ==========================================================================
   PROFILE FRONTEND STYLES
   ========================================================================== */
.wpmc-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wpmc-profile-header {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 300px;
    background: linear-gradient(135deg, #ff602e 0%, #ff7a4d 100%);
}

.wpmc-profile-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 96, 46, 0.4) 0%, rgba(255, 122, 77, 0.4) 100%);
}

.wpmc-profile-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 300px;
    padding: 40px;
    color: white;
}

.wpmc-profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    margin-right: 30px;
    background: white;
    flex-shrink: 0;
}

.wpmc-profile-info h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.wpmc-profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.wpmc-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.wpmc-contact-item:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

.wpmc-contact-item i {
    font-size: 1.1em;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .wpmc-profile-header-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .wpmc-profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
        width: 120px;
        height: 120px;
    }
    
    .wpmc-profile-info h1 {
        font-size: 2rem;
    }
    
    .wpmc-profile-contact {
        justify-content: center;
    }
}