/**
 * Membership Card Styles
 * VIP Business Card Design
 *
 * @package Membership_Plugin
 */

/* Card Container Wrapper */
.membership-card-container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 0 auto 40px auto;
    background: transparent;
}

/* Card Container */
.membership-card-wrapper {
    position: relative;
    width: 540px;
    height: 340px;
    margin: 0 auto;
}

/* Card Sides */
.membership-card-front,
.membership-card-back {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Front Card Styles */
.card-front-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-logo-area {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.card-logo-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-logo-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 2px;
}

.card-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.card-slogan-text {
    font-size: 8px;
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.card-slogan-text-below {
    font-size: 7px;
    text-align: center;
    line-height: 1.3;
    margin-top: 8px;
    max-width: 75px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.card-vip-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-top: 20px;
}

.card-crown-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card-vip-text {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.card-company-name {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-top: 15px;
    letter-spacing: 1.5px;
    padding: 0 10px;
}

.card-description {
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    margin-top: 15px;
    padding: 0 10px;
    color: rgba(26, 26, 26, 0.7);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.card-accent-line {
    position: absolute;
    bottom: 25px;
    left: 30px;
    width: 120px;
    height: 2px;
}

/* Back Card Styles */
.card-back-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-qr-section {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    z-index: 2;
    gap: 10px;
}

.card-qr-code {
    width: 120px;
    height: 120px;
    background: #FFFFFF;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-signature-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
    margin-top: 0;
}

.card-signature-box {
    width: 100%;
    height: 40px;
    border: 1px solid;
    border-radius: 3px;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-line {
    width: 80%;
    height: 2px;
    border-radius: 1px;
}

.card-member-details {
    flex: 1;
    margin-top: 20px;
    margin-right: 160px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-right: 15px;
}

.member-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    line-height: 1.8;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    transition: background-color 0.2s ease;
}

.member-detail-row:first-child {
    padding-top: 0;
}

.member-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 110px;
    font-size: 10px;
    text-transform: uppercase;
}

.detail-value {
    flex: 1;
    text-align: right;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.98);
    padding-left: 20px;
    word-break: break-word;
    font-size: 11px;
    letter-spacing: 0.2px;
}

.detail-label-right {
    font-weight: 600;
    margin-left: auto;
    min-width: 40px;
}

.card-company-info-section {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 160px;
    height: 100%;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-left: none;
    box-sizing: border-box;
    overflow: visible;
    background: transparent;
    gap: 12px;
}

.card-company-logo-mini-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
    flex-shrink: 0;
}

.card-company-logo-mini {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.card-logo-text-mini {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 1px;
}

.card-logo-image-mini {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.card-slogan-text-mini {
    font-size: 6px;
    text-align: center;
    line-height: 1.1;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.card-slogan-text-mini-below {
    font-size: 5.5px;
    text-align: center;
    line-height: 1.2;
    margin-top: 5px;
    max-width: 48px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.card-company-contact {
    text-align: center;
    font-size: 8px;
    line-height: 1.4;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-height: 0;
    gap: 6px;
}

.company-name-back {
    font-weight: 700;
    margin-bottom: 0;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    padding: 0 3px;
    line-height: 1.3;
    overflow-wrap: break-word;
    hyphens: auto;
}

.company-contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0.9;
    width: 100%;
    align-items: center;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Card Actions Container */
.card-actions {
    margin-top: 30px;
    text-align: center;
}

.membership-card-section .card-actions {
    margin-top: 20px;
}

.membership-card-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 600px) {
    .membership-card-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 340px;
    }
    
    .membership-card-front,
    .membership-card-back {
        width: 100%;
        height: auto;
        min-height: 340px;
        padding: 20px;
    }
    
    .card-front-content,
    .card-back-content {
        padding: 20px;
    }
    
    .card-vip-text {
        font-size: 56px;
    }
    
    .card-member-details {
        margin-right: 140px;
    }
    
    .card-company-info-section {
        width: 140px;
    }
}

/* Print Styles */
@media print {
    .flip-card-button {
        display: none;
    }
    
    .membership-card-flip {
        transform: none !important;
    }
    
    .membership-card-back {
        transform: rotateY(0deg) !important;
        page-break-before: always;
    }
}

