﻿/* products-landing.css
  Styles SPECIFIC to the main product selection page.
  This file should be linked AFTER products.css on the landing page.
*/

.products-page-body {
    color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
/*    padding: 40px;*/
    position: relative;
    /*    overflow: hidden;*/
    overflow-x: hidden;
    background-color: #0a0a0a;
}

    .products-page-body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        background-size: 100% 100%;
        animation: gradientShift 20s ease infinite;
    }

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.products-container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 40px;
}
.products-logo {
    /* Make it a block element to allow for margin auto */
    display: block;
    /* Center the block horizontally */
    margin-left: auto;
    margin-right: auto;
    /* Ensure the image scales down on small screens */
    width: 100%;
    /* Set a maximum size for larger screens */
    max-width: 350px;
    /* Keep your original bottom margin */
    margin-bottom: 30px;
}


.products-container h1 {
/*    font-size: 3rem;*/
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #f093fb, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-container .slogan {
    font-size: 1.4rem;
    margin-bottom: 25px;
    opacity: 0.7;
    font-style: italic;
    color: #ccc;
}

.products-container p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(145deg, var(--primary-accent), var(--tertiary-accent));
    color: var(--text-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    border: 2px solid var(--light-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px var(--shadow-color);
    }

    .product-card .icon {
        font-size: 4rem;
        margin-bottom: 20px;
        color: var(--secondary-accent);
        text-shadow: 0 0 20px var(--glow-color);
    }

    .product-card h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .product-card .description {
        font-size: 1rem;
        opacity: 0.9;
        line-height: 1.6;
    }

    /* Theme Overrides for each card on the landing page */
    .product-card.theme-digital-business {
        --text-color: #3E2723;
        --primary-accent: #bd422b;
        --secondary-accent: #ccb04d;
        --tertiary-accent: #ffbe28;
        --light-border: rgba(255, 255, 255, 0.4);
        --shadow-color: rgba(166, 106, 79, 0.4);
        --glow-color: rgba(166, 106, 79, 0.5);
    }

    .product-card.theme-office-building {
        --text-color: black;
        --primary-accent: #81783e;
        --secondary-accent: #adaa97;
        --tertiary-accent: #ccc;
        --light-border: rgba(255, 255, 255, 0.4);
        --shadow-color: rgba(46, 125, 50, 0.4);
        --glow-color: rgba(46, 125, 50, 0.5);
    }

    .product-card.theme-conference {
        --text-color: black;
        --primary-accent: #2f51ed;
        --secondary-accent: #2854cc;
        --tertiary-accent: #a9c3e5;
        --light-border: rgba(255, 255, 255, 0.2);
        --shadow-color: rgba(240, 147, 251, 0.3);
        --glow-color: rgba(240, 147, 251, 0.5);
    }

/* --- Card Actions Container --- */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* דוחף את הלחצנים לתחתית הכרטיס */
    padding-top: 20px;
    width: 100%;
    flex-wrap: wrap; /* מאפשר שבירה בנייד */
    justify-content: center;
}

/* --- Sub-Button Styling --- */
.sub-button {
    flex: 1; /* מחלק את השטח שווה בשווה */
    min-width: 120px;
    padding: 10px 15px;
    background: var(--light-transparent-hover);
    border: 1px solid var(--light-border);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

    .sub-button i {
        font-size: 1.1rem;
        opacity: 0.8;
    }

    .sub-button:hover, .sub-button:active {
        background: var(--secondary-accent);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px var(--shadow-color);
        color: white;
    }

/* Adjustments for 3 buttons - stack them slightly differently if needed */
.three-buttons .sub-button {
    min-width: 90px;
    font-size: 0.85rem;
    padding: 8px 10px;
}

/* --- Responsive Fix for Mobile --- */
@media (max-width: 480px) {
    .card-actions {
        flex-direction: column; /* בנייד קטן הלחצנים יהיו אחד מעל השני */
    }

    .sub-button {
        width: 100%;
    }
}

/* Update product-card to be a flex container */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* מוודא שכל הכרטיסים באותו גובה */
    text-decoration: none; /* למקרה שנשארו שאריות מה-<a> */
    cursor: default; /* הכרטיס עצמו כבר לא לחיץ, רק הלחצנים */
}
/* --- עיצוב כללי משופר ללחצנים --- */
.sub-button {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white; /* טקסט לבן תמיד נראה טוב יותר על הצבעים האלו */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- צבעים לכרטיס בנייני משרדים (ירוק/טורקיז) --- */
.theme-office-building .sub-button:nth-child(1) {
    background: linear-gradient(135deg, #4b5d3f, #3a4a31); /* ירוק זית כהה */
}

.theme-office-building .sub-button:nth-child(2) {
    background: linear-gradient(135deg, #3a7a8a, #2a5a6a); /* טורקיז עמוק */
}

/* --- צבעים לכרטיס כנסים ואירועים (כחולים) --- */
.theme-conference .sub-button:nth-child(1) {
    background: linear-gradient(135deg, #1a2a5a, #0d1a3a); /* כחול כהה מאוד */
}

.theme-conference .sub-button:nth-child(2) {
    background: linear-gradient(135deg, #2a4a8a, #1a2a5a); /* כחול רויאל */
}

.theme-conference .sub-button:nth-child(3) {
    background: linear-gradient(135deg, #4a8aaa, #2a6a8a); /* כחול שמיים עמוק */
}

/* --- צבעים לזהות דיגיטלית (חום/זהב) --- */
.theme-digital-business .sub-button:nth-child(1) {
    background: linear-gradient(135deg, #7d4427, #5a311b); /* חום שוקולד/אדמה */
}

.theme-digital-business .sub-button:nth-child(2) {
    background: linear-gradient(135deg, #c59d5f, #a07d4a); /* זהב/אמבר */
}

/* אפקט במעבר עכבר או לחיצה */
.sub-button:hover, .sub-button:active {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}