/* TR Produktfinder Plugin Styles */

.tr-produktfinder-wrapper {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    padding: 20px 0;
}

/* When inside overlay, remove padding and background */
.tr-finder-overlay .tr-produktfinder-wrapper {
    padding: 0;
    background: transparent;
}

.tr-produktfinder-wrapper :root {
    --primary: #024593;
    --primary-light: #03A9F4;
    --accent: #FBBB02;
    --bg-cream: #EFEBD6;
    --bg-white: #ffffff;
    --text-dark: #024593;
    --text-medium: #024593;
    --text-light: #8a8a8a;
    --border-soft: #e5e0db;
    --shadow-soft: rgba(45, 90, 77, 0.08);
}

.tr-produktfinder-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* When inside overlay, use full width */
.tr-finder-overlay .tr-produktfinder-container {
    max-width: 100%;
}

.tr-produktfinder-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease;
}

/* Hide header when inside overlay (welcome screen replaces it) */
.tr-finder-overlay .tr-produktfinder-header {
    display: none;
}

.tr-produktfinder-header h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3em;
    color: #024593;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.tr-produktfinder-header p {
    font-size: 1.15em;
    color: #024593;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.tr-produktfinder-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 45px;
    box-shadow: 0 10px 40px rgba(45, 90, 77, 0.08);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
    border: 1px solid #e5e0db;
}

.tr-produktfinder-question-section {
    display: none;
}

.tr-produktfinder-question-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tr-produktfinder-question-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8em;
    color: #024593;
    margin-bottom: 30px;
    font-weight: 700;
}

.tr-produktfinder-options {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.tr-produktfinder-option-btn {
    background: #EFEBD6;
    border: 2px solid #e5e0db;
    border-radius: 12px;
    padding: 20px 25px;
    font-size: 1.05em;
    color: #024593;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tr-produktfinder-option-btn:hover {
    border-color: #03A9F4;
    background: #f5f3f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 77, 0.08);
}

.tr-produktfinder-option-btn:active {
    transform: translateY(0);
}

.tr-produktfinder-option-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #ffffff;
}

.tr-produktfinder-option-text {
    flex: 1;
}

.tr-produktfinder-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e0db;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.tr-produktfinder-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #024593 0%, #03A9F4 100%);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

.tr-produktfinder-navigation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.tr-produktfinder-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.tr-produktfinder-btn-secondary {
    background: #EFEBD6;
    color: #024593;
    border: 2px solid #e5e0db;
}

.tr-produktfinder-btn-secondary:hover {
    background: #f0ede8;
}

.tr-produktfinder-btn-primary {
    background: #024593;
    color: white;
    flex-grow: 1;
}

.tr-produktfinder-btn-primary:hover {
    background: #03A9F4;
    box-shadow: 0 4px 12px rgba(45, 90, 77, 0.08);
}

.tr-produktfinder-results-section {
    display: none;
}

.tr-produktfinder-results-section.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.tr-produktfinder-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.tr-produktfinder-category-header {
    grid-column: 1 / -1;
    margin-top: 30px;
}

.tr-produktfinder-category-header:first-child {
    margin-top: 0;
}

.tr-produktfinder-category-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    color: #024593;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FBBB02;
}

.tr-produktfinder-category-count {
    color: #8a8a8a;
    font-size: 0.8em;
}

.tr-produktfinder-product-card {
    background: #ffffff;
    border: 2px solid #e5e0db;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: scaleIn 0.4s ease;
}

.tr-produktfinder-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 90, 77, 0.08);
    border-color: #03A9F4;
}

.tr-produktfinder-product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #EFEBD6;
}

.tr-produktfinder-product-content {
    padding: 25px;
}

.tr-produktfinder-product-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4em;
    color: #024593;
    margin-bottom: 12px;
    font-weight: 700;
}

.tr-produktfinder-product-description {
    color: #024593;
    font-size: 0.95em;
    margin-bottom: 18px;
    line-height: 1.6;
}

.tr-produktfinder-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tr-produktfinder-tag {
    background: #EFEBD6;
    color: #024593;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid #e5e0db;
}

.tr-produktfinder-product-link {
    display: inline-block;
    color: #FBBB02;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tr-produktfinder-product-link:hover {
    color: #024593;
}

.tr-produktfinder-restart-btn {
    margin-top: 35px;
    background: #EFEBD6;
    color: #024593;
    border: 2px solid #e5e0db;
}

.tr-produktfinder-restart-btn:hover {
    background: #f0ede8;
    border-color: #03A9F4;
}

/* Direct link buttons */
.tr-produktfinder-direct-link {
    text-decoration: none;
    display: flex;
}

.tr-produktfinder-direct-link:hover {
    border-color: #03A9F4;
    background: #f5f3f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 77, 0.08);
}

.tr-produktfinder-direct-link * {
    text-decoration: none !important;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tr-produktfinder-header h1 {
        font-size: 2.2em;
    }

    .tr-produktfinder-card {
        padding: 35px 25px;
    }

    .tr-produktfinder-product-grid {
        grid-template-columns: 1fr;
    }

    .tr-produktfinder-option-icon {
        width: 50px;
        height: 50px;
    }

    .tr-produktfinder-option-btn {
        padding: 15px 20px;
        font-size: 1em;
        gap: 15px;
    }
}
