/* Joint Ventures Page Styles */

/* Joint Venture specific layouts */

.personas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 0 0;
}

.persona-box {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.persona-box.loaded {
    border-color: #bbb;
    background: #fafbfc;
}

.persona-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.persona-header h3 {
    margin: 0 0 1rem 0;
    color: #111;
    text-align: center;
    text-shadow: none;
    flex: 1;
}

.clear-persona-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eee;
    color: #111;
    border: 2px solid #ccc;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.clear-persona-btn:hover {
    background: #ddd;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.10);
}

.persona-content.empty {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.persona-display {
    text-align: center;
    padding: 1rem;
}

.persona-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.persona-title {
    font-weight: bold;
    color: #111;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.persona-industry {
    color: #444;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.persona-claim-to-fame {
    color: #444;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.4;
}



.create-jv-section {
    text-align: center;
    margin: 3rem 0;
}

.create-jv-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    background: #fafbfc;
    color: #111;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    min-width: 280px;
    text-shadow: none;
}

.create-jv-btn::before {
    display: none;
}

.create-jv-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    background: #f0f0f0;
    border-color: #bbb;
}

.create-jv-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.create-jv-btn:disabled {
    background: #eee;
    border-color: #eee;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.5;
    color: #888;
}

.jv-results-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.jv-results-section h2 {
    color: #111;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: none;
}

.jv-content {
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.jv-content .loading-section,
.jv-content .generated-content {
    background: #fafbfc;
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.jv-header h3 {
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 1rem;
    text-align: center;
    padding: 1rem;
    background: #fafbfc;
    border-radius: 8px;
}

.jv-summary, .jv-claim-to-fame, .jv-description, .jv-business-model, .jv-features {
    margin: 1.5rem 0;
}

.jv-summary h4, .jv-claim-to-fame h4, .jv-description h4, .jv-business-model h4, .jv-features h4 {
    color: #111;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.jv-summary p, .jv-claim-to-fame p, .jv-description p, .jv-business-model p, .jv-features ul, .jv-features li {
    color: #222;
    line-height: 1.6;
}

.jv-image-placeholder, .image-placeholder {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    border: 2px dashed #eee;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    color: #888;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #bbb;
}

.jv-results-section .loading-section {
    text-align: center;
    padding: 3rem;
}

.jv-results-section .loading-section p {
    color: #111 !important;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.jv-results-section .loading-subtext {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Image loading and generation styles */
.image-loading {
    text-align: center;
    padding: 2rem;
    color: #111;
}

.image-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

.generated-image img {
    transition: opacity 0.3s ease;
}

.generated-image img[onload] {
    opacity: 0;
}

/* Additional loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast styling for joint ventures page */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    border-left: 4px solid;
    padding: 0.75rem 1rem;
}

.toast.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left-color: #28a745;
    background: #d4edda;
    color: #111;
}

.toast-info {
    border-left-color: #17a2b8;
    background: #d1ecf1;
    color: #111;
}

.toast-warning {
    border-left-color: #ffc107;
    background: #fff3cd;
    color: #111;
}

.toast-error {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #111;
}

/* Image placement between title and description */
#jvImage {
    margin: 2rem 0;
    text-align: center;
}

#jvImage .generated-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

#jvImage .image-loading {
    padding: 2rem;
    color: #111;
}

#jvImage .image-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .header-actions {
        position: relative;
        top: auto;
        right: auto;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .view-saved-btn, .jv-btn, .back-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0;
    }

    .personas-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .persona-box {
        padding: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .next-btn, .save-btn {
        width: 100%;
        padding: 0.6rem 1rem;
    }

    .create-jv-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: auto;
        width: 90%;
        max-width: 320px;
    }

    .jv-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* New styles for updated persona display */
.persona-user-name-large {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.persona-title-small {
    margin: 0;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Button styles for select persona */
.save-btn {
    white-space: nowrap;
    min-width: 150px;
    padding: 12px 20px;
}

/* Remix Modal Styles */
.remix-description {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1rem;
}

.preset-remixes {
    margin-bottom: 2rem;
}

.preset-remixes h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.preset-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preset-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.preset-btn:active {
    transform: translateY(0);
}

.custom-remix h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.custom-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.input-group textarea {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.wand-btn {
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wand-btn:active {
    transform: translateY(0);
}

.wand-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
