/* ai-biz-home-styles.css */

#ai-biz-home-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.ai-biz-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.ai-biz-row-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.ai-biz-view-more {
    color: #FF6B3D;
    text-decoration: none;
    font-size: 24px;
    font-weight: normal;
}

.ai-biz-view-more:hover {
    color: #FF6B3D;
    text-decoration: underline;
}

.ai-biz-row {
    margin-bottom: 40px;
}

.ai-biz-cards {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-start;
}

.ai-biz-card {
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    border-radius: 6px;
    padding: 15px 11px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 248px;
    max-width: 248px;
    height: 145px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.ai-biz-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border-color: #3F444B;
    background-color: #f0f8ff;
}

.ai-biz-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #000000;
}

.ai-biz-card h6 {
    margin: 0;
    font-size: 12px;
    color: #8B8D97;
}

.ai-biz-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .ai-biz-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media screen and (max-width: 600px) {
    #ai-biz-home-container {
        padding: 10px;
    }

    .ai-biz-card {
        flex: 1 1 100%;
    }
}


/* Modal Styles (same as Saved Work) */
#full-data-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.saved-work-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    max-width: 800px;
    width: calc(100% - 40px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.saved-work-modal-text {
    white-space: pre-wrap;
    max-height: 60vh;
    overflow-y: auto;
    background-color: #EFF1F9;
    padding: 20px;
    border-radius: 8px;
    font-family: inherit;
    line-height: 1.5;
    margin-bottom: 20px;
}

.saved-work-modal-actions button {
    min-width: 120px;
    height: 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 16px;
}

.saved-work-copy {
    background-color: transparent;
    color: #FF6B3D;
    border: 1px solid #FF6B3D;
}

.saved-work-copy:hover {
    background-color: rgba(255, 107, 61, 0.1);
}

.saved-work-close {
    background-color: #FF6B3D;
    color: #ffffff;
    border: none;
}

.saved-work-close:hover {
    background-color: #ff825c;
    box-shadow: 0 2px 4px rgba(255, 107, 61, 0.2);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .saved-work-modal-content {
        width: calc(100% - 20px);
        padding: 15px;
    }

    .saved-work-modal-actions button {
        width: calc(50% - 8px);
        margin: 0;
    }

    .saved-work-modal-text {
        padding: 15px;
        max-height: 50vh;
    }
}

/* Make home screen cards match briefing knowledge styling */
.ai-biz-card {
    /* Match briefing knowledge card dimensions */
    width: 300px;
    height: 150px;
    padding: 20px;
    /* Add gradient backgrounds */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
}

/* Match hover effects */
.ai-biz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Match typography */
.ai-biz-card h3 {
    font-size: 1.2rem;
    color: #2d3436;
    margin-bottom: 8px;
}

.ai-biz-card p {
    font-size: 0.9rem;
    color: #636e72;
}


.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF6B3D;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Make sure cards allow positioning */
.ai-biz-card {
    position: relative;
}