/* ProductLife Public Styles */

/* Force full-width layout when ProductLife is active */
body.productlife-active .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

body.productlife-active .woocommerce div.product div.images {
    display: none !important;
}

body.productlife-active .sidebar,
body.productlife-active #secondary,
body.productlife-active aside {
    display: none !important;
}

body.productlife-active .content-area,
body.productlife-active #primary,
body.productlife-active main {
    width: 100% !important;
    max-width: 100% !important;
}

/* Main hold page wrapper */
.productlife-hold-page-wrapper {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.productlife-hold-page {
    width: 100%;
    max-width: 800px;
}

.productlife-hold-page h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.productlife-hold-page p {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
}

.productlife-hold-page strong {
    color: #fff;
    font-weight: 600;
}

/* Countdown Timer */
.productlife-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.productlife-countdown-item {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    min-width: 100px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.productlife-countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.productlife-countdown-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.productlife-countdown-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Reminder Form */
.productlife-reminder-form {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.productlife-reminder-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.productlife-reminder-form input[type="email"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.productlife-reminder-form input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.productlife-reminder-form button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.productlife-reminder-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.productlife-reminder-form button:active {
    transform: translateY(0);
}

.productlife-reminder-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#productlife-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

#productlife-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#productlife-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hide all product-related content */
body.productlife-active .woocommerce-product-gallery,
body.productlife-active .product_meta,
body.productlife-active .woocommerce-tabs,
body.productlife-active .related,
body.productlife-active .upsells {
    display: none !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .productlife-hold-page h2 {
        font-size: 32px;
    }
    
    .productlife-countdown {
        gap: 10px;
    }
    
    .productlife-countdown-item {
        min-width: 70px;
        padding: 15px 10px;
    }
    
    .productlife-countdown-value {
        font-size: 32px;
    }
    
    .productlife-countdown-label {
        font-size: 12px;
    }
    
    .productlife-reminder-form {
        padding: 30px 20px;
    }
}
