/**
 * ACE Auto Blogger - Front-end Stylesheet
 * Responsive 9:16 YouTube Shorts embed, 16:9 player, and article formatting.
 */

.ace-shorts-container {
    max-width: 380px;
    margin: 2rem auto 2.5rem auto;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ace-shorts-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px -5px rgba(0, 0, 0, 0.2);
}

.ace-shorts-wrapper {
    position: relative;
    padding-bottom: 177.77%; /* 9:16 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.ace-shorts-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Regular (16:9) YouTube Video Embed */
.ace-regular-container {
    max-width: 800px;
    margin: 2rem auto 2.5rem auto;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #000;
}

.ace-regular-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.ace-regular-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Post Typography & Content Enhancements */
.ace-article-content h2 {
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
}

.ace-article-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 600;
}

.ace-article-content p {
    line-height: 1.75;
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
}

.ace-article-content ul, 
.ace-article-content ol {
    margin: 1.2rem 0 1.6rem 1.5rem;
    line-height: 1.7;
}

.ace-article-content li {
    margin-bottom: 0.5rem;
}

/* FAQ Block Styling */
.ace-faq-section {
    margin-top: 2.5rem;
    padding: 1.8rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.ace-faq-item {
    margin-bottom: 1.4rem;
}

.ace-faq-item:last-child {
    margin-bottom: 0;
}

.ace-faq-question {
    font-weight: 600;
    font-size: 1.15rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.ace-faq-answer {
    color: #475569;
    font-size: 1rem;
    line-height: 1.65;
}

/* SEO Direct Answer / Featured Snippet Box */
.ace-quick-answer {
    margin: 1.8rem 0 2.2rem 0;
    padding: 1.4rem 1.6rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #16a34a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.05);
}

.ace-quick-answer h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    color: #166534;
    font-weight: 700;
}

.ace-quick-answer p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #1e293b;
}

/* LLM & GEO Key Field Takeaways Box */
.ace-key-takeaways {
    margin: 2rem 0 2.5rem 0;
    padding: 1.5rem 1.8rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #6366f1;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.05);
}

.ace-key-takeaways h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: #4338ca;
    font-weight: 700;
}

.ace-key-takeaways ul {
    margin: 0 0 0 1.2rem;
    padding: 0;
}

.ace-key-takeaways li {
    margin-bottom: 0.6rem;
    line-height: 1.65;
    color: #334155;
    font-size: 1.02rem;
}

.ace-key-takeaways li:last-child {
    margin-bottom: 0;
}

/* Wildlife Species Biological Specifications Table */
.ace-species-spec-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.ace-species-spec-table th,
.ace-species-spec-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.ace-species-spec-table th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.ace-species-spec-table td {
    color: #334155;
    font-size: 0.95rem;
}

.ace-species-spec-table tr:last-child td {
    border-bottom: none;
}

.ace-species-spec-table tr:hover {
    background: #f8fafc;
}

/* Dynamic Fact Callout */
.ace-fact-callout {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
}

.ace-fact-callout h3 {
    margin-top: 0;
    color: #0369a1;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .ace-shorts-container {
        max-width: 100%;
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    
    .ace-quick-answer,
    .ace-key-takeaways,
    .ace-faq-section {
        padding: 1.2rem;
    }
}

/* Multi-Network Social Sharing Strip */
.ace-share-story-strip {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ace-share-link-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e4e4e7 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 12px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.ace-share-link-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
