/**
 * CRM Plan Widgets Styles
 *
 * CSS styles for all CRM plan card widgets.
 *
 * @package Custom_Crm_Webshop
 * @since   1.0.0
 */

/* ========================
   Base Styles
   ======================== */

.crm-plan-card-container {
    position: relative;
    transition: all 0.3s ease;
}

.crm-plan-card-content {
    height: 100%;
}

/* Container placeholder (editor only) */
.crm-container-placeholder {
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    color: #666;
}

.crm-container-placeholder p {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.crm-container-placeholder small {
    font-size: 12px;
    opacity: 0.7;
}

/* ========================
   Hover Animations
   ======================== */

.crm-plan-card-container.hover-lift:hover {
    transform: translateY(-8px);
}

.crm-plan-card-container.hover-scale:hover {
    transform: scale(1.05);
}

.crm-plan-card-container.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.crm-plan-card-container.hover-bounce:hover {
    animation: crm-bounce 0.6s ease;
}

@keyframes crm-bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* ========================
   Featured Label
   ======================== */

.crm-featured-label {
    position: absolute;
    z-index: 10;
    padding: 6px 12px;
    background: #ff6b35;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

.crm-featured-label.position-top-left {
    top: 15px;
    left: 15px;
}

.crm-featured-label.position-top-right {
    top: 15px;
    right: 15px;
}

.crm-featured-label.position-top-center {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.crm-featured-label.position-bottom-left {
    bottom: 15px;
    left: 15px;
}

.crm-featured-label.position-bottom-right {
    bottom: 15px;
    right: 15px;
}

.crm-featured-label.position-bottom-center {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

/* ========================
   Plan Title Widget
   ======================== */

.crm-plan-title {
    margin: 0;
    line-height: 1.2;
}

.crm-plan-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ========================
   Price Widgets
   ======================== */

.crm-trial-price-container,
.crm-subscription-price-container {
    margin: 0;
}

.crm-trial-price,
.crm-subscription-price {
    font-weight: 600;
    line-height: 1.2;
}

.crm-trial-days,
.crm-subscription-period {
    font-size: 0.9em;
    opacity: 0.8;
    line-height: 1.3;
}

.crm-trial-inline,
.crm-subscription-inline {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.crm-trial-separator,
.crm-subscription-separator {
    opacity: 0.6;
}

.crm-currency-label {
    font-size: 0.8em;
    opacity: 0.7;
    font-weight: normal;
}

.crm-no-trial {
    color: #666;
    font-style: italic;
}

/* ========================
   Benefits List Widget
   ======================== */

.crm-benefits-container {
    margin: 0;
}

.crm-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.crm-benefit-item {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.crm-benefit-item.icon-right {
    flex-direction: row-reverse;
}

.crm-benefit-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.crm-benefit-text {
    flex: 1;
    line-height: 1.4;
}

.crm-no-benefits {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* ========================
   Signup Button Widget
   ======================== */

.crm-signup-button-wrapper {
    margin: 0;
}

.crm-signup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.crm-signup-button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.crm-signup-button:active {
    transform: translateY(0);
}

/* Button Sizes */
.crm-signup-button.size-xs {
    padding: 6px 12px;
    font-size: 12px;
}

.crm-signup-button.size-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.crm-signup-button.size-md {
    padding: 12px 24px;
    font-size: 16px;
}

.crm-signup-button.size-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.crm-signup-button.size-xl {
    padding: 20px 40px;
    font-size: 20px;
}

.crm-signup-button.full-width {
    width: 100%;
}

.crm-button-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.crm-button-text {
    display: inline-block;
}

/* ========================
   Debug Information
   ======================== */

.crm-widget-debug {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 11px;
    line-height: 1.4;
    color: #666;
}

.crm-widget-debug strong {
    color: #333;
}

.crm-widget-no-product {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

/* ========================
   Responsive Design
   ======================== */

@media (max-width: 768px) {
    .crm-trial-inline,
    .crm-subscription-inline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .crm-trial-separator,
    .crm-subscription-separator {
        display: none;
    }
    
    .crm-signup-button {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .crm-featured-label {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .crm-signup-button.size-lg,
    .crm-signup-button.size-xl {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .crm-benefit-item {
        align-items: flex-start;
    }
}

/* ========================
   Print Styles
   ======================== */

@media print {
    .crm-plan-card-container {
        break-inside: avoid;
        box-shadow: none !important;
    }
    
    .crm-signup-button {
        background: #000 !important;
        color: #fff !important;
        box-shadow: none !important;
    }
    
    .crm-widget-debug {
        display: none !important;
    }
}
