/*
 * DigitalProfitKit - Stiluri pentru secțiunea interactivă de instrumente
 * Version: 1.2.1
 */
.digitalprofitkit-interactive-section {
    padding: 80px 20px;
    background-color: #f8fbfd;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dpk-interactive-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Coloana Stângă: Sidebar --- */
.dpk-sidebar {
    flex: 0 0 250px; /* Nu crește, nu se micșorează, lățime de bază 250px */
}

.dpk-sidebar h4 {
    font-size: 1.4em;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.dpk-category-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 8px;
    border: 1px solid #eef6ff;
    background-color: #ffffff;
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.dpk-category-button:hover {
    border-color: #007bff;
    background-color: #f0f6fc;
    color: #007bff;
}

.dpk-category-button.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
    font-weight: 600;
}

/* --- Coloana Dreaptă: Conținut Principal --- */
.dpk-main-content {
    flex: 1; /* Ocupă restul spațiului disponibil */
    min-width: 0; /* Previne overflow-ul în flexbox */
}

.dpk-filters {
    margin-bottom: 30px;
}

.dpk-category-dropdown {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: .65em auto;
    /* --- MODIFICAREA ADAUGATĂ AICI --- */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#tools-grid-container {
    transition: opacity 0.3s ease;
}

p.dpk-no-tools-found {
    background-color: #f9fcff;
    border: 1px solid #eef6ff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: #5d6d7e;
    font-size: 1.1em;
}

/* --- Gridul și Cardurile --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background-color: #ffffff;
    border: 1px solid #eef6ff;
    border-radius: 16px;
    text-align: left;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tool-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 123, 255, 0.1); border-color: #007bff; }
.tool-thumbnail-link { display: block; }
.tool-thumbnail { width: 100%; height: 160px; overflow: hidden; background-color: #eef6ff; }
.tool-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.tool-card:hover .tool-thumbnail img { transform: scale(1.05); }
.tool-thumbnail.placeholder { display: flex; align-items: center; justify-content: center; font-size: 4em; color: #bdcde0; }
.tool-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.tool-title { font-size: 1.3em; margin: 0 0 10px 0; color: #1a1a1a; font-weight: 600; line-height: 1.3; }
.tool-title a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.tool-title a:hover { color: #007bff; }
.tool-excerpt { font-size: 0.9em; color: #5d6d7e; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.tool-excerpt p { margin: 0; }
.tool-cta-wrapper { margin-top: auto; }
.tool-cta { display: inline-block; background: #007bff; color: #ffffff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.2s ease; font-size: 0.9em; }
.tool-cta:hover { background-color: #0056b3; transform: translateY(-2px); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .dpk-interactive-wrapper {
        flex-direction: column;
    }
    .dpk-sidebar {
        flex: 0 0 auto; /* Revine la dimensiune automată */
        width: 100%;
    }
}
@media (max-width: 768px) {
    .digitalprofitkit-interactive-section {
        padding: 40px 15px;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
}