/* Blog Outline Generator Styles */

.inhouse-blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.inhouse-blog-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

/* Input Section */
.inhouse-blog-input-wrapper {
    margin-bottom: 30px;
}

.inhouse-blog-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.inhouse-blog-input {
    flex: 1;
    min-width: 300px;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.inhouse-blog-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.inhouse-blog-input:focus {
    outline: none;
    border-color: var(--inhouse-blog-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Generate Button with AI Icon */
.inhouse-blog-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--inhouse-blog-button) 0%, var(--inhouse-blog-primary) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.inhouse-blog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.inhouse-blog-btn:active {
    transform: translateY(0);
}

.inhouse-blog-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* AI Icon (3-star sparkle) */
.inhouse-ai-icon {
    width: 24px;
    height: 24px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Button Loader */
.btn-loader {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Settings Section */
.inhouse-blog-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inhouse-blog-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inhouse-blog-select-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.inhouse-blog-select {
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.inhouse-blog-select:focus {
    outline: none;
    border-color: var(--inhouse-blog-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.inhouse-blog-select:hover {
    border-color: var(--inhouse-blog-primary);
}

/* Turnstile Wrapper - Centered below settings */
.inhouse-blog-turnstile-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.inhouse-turnstile-widget {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Output Section */
.inhouse-blog-output {
    margin-top: 40px;
}

/* Error Message */
.inhouse-blog-error {
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
    font-weight: 500;
}

/* Result Container */
.inhouse-blog-result {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Containers */
.inhouse-blog-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.inhouse-blog-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--inhouse-blog-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Blog Title */
.inhouse-blog-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0;
}

/* Text Content */
.inhouse-blog-text {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

/* Content Sections */
.inhouse-blog-content-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--inhouse-blog-primary);
}

.inhouse-blog-content-section:last-child {
    margin-bottom: 0;
}

.inhouse-blog-h2 {
    font-size: 19px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

/* Subsections List */
.inhouse-blog-subsections {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.inhouse-blog-subsections li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.inhouse-blog-subsections li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--inhouse-blog-primary);
    font-weight: 700;
}

/* Key Points */
.inhouse-blog-keypoints {
    margin-top: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.inhouse-blog-keypoints strong {
    color: var(--inhouse-blog-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inhouse-blog-keypoints ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.inhouse-blog-keypoints li {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.inhouse-blog-keypoints li:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .inhouse-blog-card {
        padding: 24px;
    }

    .inhouse-blog-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .inhouse-blog-input {
        min-width: 100%;
    }

    .inhouse-blog-btn {
        width: 100%;
        justify-content: center;
    }

    .inhouse-blog-settings {
        grid-template-columns: 1fr;
    }

    .inhouse-blog-title {
        font-size: 20px;
    }

    .inhouse-blog-h2 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .inhouse-blog-container {
        padding: 12px;
    }

    .inhouse-blog-card {
        padding: 20px;
        border-radius: 12px;
    }

    .inhouse-blog-section {
        padding: 16px;
    }

    .inhouse-blog-content-section {
        padding: 16px;
    }
}
