/* Frontend Styles for WooCommerce Preparation Time Plugin - Minimal Design */

/* Base Minimal Style */
.wpt-preparation-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f7f9fc;
    color: #2c3e50;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin: 15px 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wpt-preparation-time:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Icon Styles */
.wpt-preparation-time .wpt-icon {
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.wpt-preparation-time:hover .wpt-icon {
    opacity: 1;
}

.wpt-preparation-time .wpt-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Text Styles */
.wpt-preparation-time .wpt-text {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.wpt-preparation-time .wpt-date {
    opacity: 0.75;
    font-size: 13px;
    margin-right: 4px;
}

/* Product Page - Premium Style */
.wpt-context-product {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.wpt-context-product:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.wpt-context-product:hover:before {
    left: 100%;
}

.wpt-context-product .wpt-icon {
    opacity: 0.95;
}

.wpt-context-product .wpt-icon svg {
    stroke: white;
    fill: none;
}

.wpt-context-product .wpt-date {
    color: rgba(255, 255, 255, 0.9);
}

/* Checkout Page - Ultra Minimal */
.wpt-checkout-row th {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.wpt-checkout-row td {
    text-align: right;
}

.wpt-context-checkout {
    padding: 6px 12px;
    font-size: 13px;
    background: #ffffff;
    border: 1px dashed #cbd5e0;
    margin: 0;
    display: inline-flex;
    border-radius: 4px;
}

.wpt-context-checkout:hover {
    transform: none;
    box-shadow: none;
    border-style: solid;
}

.wpt-context-checkout .wpt-icon svg {
    width: 14px;
    height: 14px;
}

.wpt-context-checkout .wpt-text {
    font-size: 13px;
}

/* Animation Classes */
.wpt-animation-fade {
    animation: wptFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpt-animation-slide {
    animation: wptSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wptFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wptSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternative Styles */
.wpt-style-rounded {
    border-radius: 25px;
    padding: 8px 18px;
}

.wpt-style-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
}

.wpt-style-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.wpt-style-gradient .wpt-icon svg {
    stroke: white;
}

/* Loading State */
.wpt-loading {
    position: relative;
    color: transparent;
}

.wpt-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wpt-preparation-time {
        font-size: 13px;
        padding: 7px 12px;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .wpt-context-product {
        margin: 12px 0;
        padding: 10px 16px;
    }
    
    .wpt-context-checkout {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .wpt-checkout-time h3 {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wpt-preparation-time .wpt-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .wpt-preparation-time .wpt-text {
        font-size: 13px;
    }
    
    .wpt-preparation-time .wpt-date {
        display: block;
        margin-top: 2px;
        font-size: 11px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wpt-preparation-time {
        background: #1a202c;
        color: #e2e8f0;
        border-color: #2d3748;
    }
    
    .wpt-context-checkout {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .wpt-checkout-time {
        border-color: #4a5568;
    }
    
    .wpt-checkout-time h3 {
        color: #cbd5e0;
    }
}

/* Print Styles */
@media print {
    .wpt-preparation-time {
        border: 1px solid #333;
        background: white !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .wpt-preparation-time .wpt-icon {
        display: none;
    }
}

/* RTL Support */
.rtl .wpt-preparation-time {
    direction: rtl;
    flex-direction: row-reverse;
}

.rtl .wpt-preparation-time .wpt-icon {
    margin-left: 0;
    margin-right: 8px;
}

.rtl .wpt-preparation-time .wpt-date {
    margin-left: 0;
    margin-right: 4px;
}

.rtl .wpt-checkout-row td {
    text-align: left;
}

/* Hide Cart Display */
.wpt-cart-total-time,
.wpt-cart-item-time {
    display: none !important;
}