/* ReEnhancements Page Styles */

.re-enhancements-page {
    max-width: 1200px;
    margin: 0;
    padding: 0;
}

/* Header Section */
.re-enhancements-header {
    background: linear-gradient(135deg, #F8991D 0%, #ff6b35 100%);
    color: white;
    padding: 20px 30px;
    margin: 30px 20px;
    border-radius: 8px;
    position: relative;
    min-height: 140px;
}

.re-enhancements-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

.re-enhancements-header-content a {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.re-enhancements-header-content a:hover {
    opacity: 1;
    text-decoration: none;
}

.reenhanced-logo {
    width: 50px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.re-enhancements-header-content a:hover .reenhanced-logo {
    transform: scale(1.05);
}

.header-text {
    flex: 1;
    padding-right: 80px;
}

.header-text h1 {
    margin: 0 0 15px 0;
    font-size: 3em;
    font-weight: 700;
    color: white;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.header-text h1 .re-prefix {
    opacity: 0.6;
    font-weight: 400;
}

.header-text .description {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.95;
    color: white;
    max-width: 800px;
}

/* Content Sections */
.re-enhancements-content {
    padding: 0 20px;
}

.products-section,
.services-section {
    margin-bottom: 60px;
}

.products-section h2,
.services-section h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #1d2327;
    font-weight: 600;
}

.section-description {
    font-size: 1.1em;
    color: #646970;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #F8991D;
}

.installed-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.installed-badge span {
    background: #00a32a;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f9f9f9;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-image .video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image .video-container iframe {
    max-width: 100%;
    max-height: 160px;
    border-radius: 4px;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 1.4em;
    margin: 0 0 15px 0;
    color: #1d2327;
    font-weight: 600;
}

.product-description {
    color: #646970;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.product-features li {
    padding: 8px 0;
    color: #646970;
    position: relative;
    padding-left: 20px;
    font-size: 0.9em;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F8991D;
    font-weight: bold;
}

.product-actions {
    text-align: center;
}

.product-card:hover .button-primary {
    background: #F8991D;
    border-color: #F8991D;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #F8991D;
}

.service-content h3 {
    font-size: 1.3em;
    margin: 0 0 15px 0;
    color: #1d2327;
    font-weight: 600;
}

.service-description {
    color: #646970;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-actions {
    text-align: center;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #1d2327 0%, #3c434a 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.cta-content h2 {
    font-size: 2em;
    margin: 0 0 15px 0;
    font-weight: 600;
    color: white;
}

.cta-content h2 .re-prefix {
    color: #F8991D;
}

.cta-content p {
    font-size: 1.1em;
    margin: 0 0 30px 0;
    opacity: 0.9;
    line-height: 1.6;
    color: white;
}

.button-large {
    font-size: 1.1em;
    padding: 12px 30px;
    height: auto;
}

/* Button Overrides */
.button-primary {
    background: #2271b1;
    border-color: #2271b1;
    transition: all 0.3s ease;
}

.button-primary:hover,
.button-primary:focus {
    background: #F8991D;
    border-color: #F8991D;
}

.button-secondary {
    background: #f6f7f7;
    border-color: #dcdcde;
    color: #2c3338;
    transition: all 0.3s ease;
}

.button-secondary:hover,
.button-secondary:focus {
    background: #F8991D;
    border-color: #F8991D;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .re-enhancements-header {
        margin: 0 -10px 20px -10px;
        padding: 30px 20px;
        min-height: 120px;
    }

    .re-enhancements-header-content {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    .header-text {
        padding-right: 0;
        width: 100%;
        padding-bottom: 50px;
    }

    .header-text h1 {
        font-size: 2.2em;
    }

    .header-text h1 .re-prefix {
        opacity: 0.5;
    }

    .re-enhancements-header-content a {
        bottom: 5px;
        right: 5px;
        font-size: 0.8em;
        gap: 6px;
    }

    .reenhanced-logo {
        width: 35px;
    }

    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-content,
    .service-card {
        padding: 20px;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: 1.6em;
    }

    .re-enhancements-content {
        padding: 0 10px;
    }
}

/* Admin Columns Background Fix */
.product-card[style*="background-color: #E3E7EB"] .product-image {
    background: #E3E7EB;
}

/* Accessibility Improvements */
.button:focus,
.product-card:focus-within,
.service-card:focus-within {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Loading States */
.product-card.loading,
.service-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .re-enhancements-header {
        background: none !important;
        color: #000 !important;
    }

    .button {
        display: none;
    }

    .product-card,
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
