/*
Theme Name: 2morrow.ai Redesign
Theme URI: https://2morrow.ai
Author: Stefan Heinz with Antigravity
Description: A modern, high-performance WordPress theme for 2morrow.ai, focusing on AI infrastructure and strategic innovation.
Version: 3.4
Text Domain: 2morrow-ai
*/

/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Base styles to match the draft */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F9F9F7;
    color: #1a1a1a;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-font {
    font-family: 'Poppins', sans-serif;
}

.brand-gradient-text {
    background: linear-gradient(135deg, #8e44ad, #e67e22, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-gradient-bg {
    background: linear-gradient(135deg, #8e44ad, #e67e22, #2980b9);
}

@keyframes cycleOriginal {

    0%,
    20% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }

    35%,
    70% {
        opacity: 0;
        transform: translateX(-20px);
        filter: blur(8px);
    }

    85%,
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes cycleNew {

    0%,
    20% {
        opacity: 0;
        transform: translateX(20px);
        filter: blur(8px);
    }

    35%,
    70% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }

    85%,
    100% {
        opacity: 0;
        transform: translateX(20px);
        filter: blur(8px);
    }
}

.animate-cycle-original {
    animation: cycleOriginal 10s ease-in-out infinite;
}

.animate-cycle-new {
    animation: cycleNew 10s ease-in-out infinite;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #e67e22;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Assessment Coming Soon Mechanism */
.assessment-coming-soon .assessment-target {
    filter: grayscale(100%) blur(1px);
    opacity: 0.7;
    pointer-events: none !important;
    position: relative;
    cursor: not-allowed;
    user-select: none;
}

/* Tooltip for buttons */
.assessment-coming-soon .assessment-target.btn-overlay {
    pointer-events: auto !important;
    /* Allow hover for tooltip */
}

.assessment-coming-soon .assessment-target.btn-overlay::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 100;
    top: -40px;
    /* Default: Top */
}

.assessment-coming-soon .assessment-target.btn-overlay-bottom::after {
    top: auto;
    bottom: -50px;
}

.assessment-coming-soon .assessment-target.btn-overlay:hover::after {
    opacity: 1;
}

/* Section Overlay */
.assessment-coming-soon section.assessment-target {
    overflow: hidden;
    position: relative;
}

.assessment-coming-soon section.assessment-target::before {
    content: "COMING SOON";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    border: 8px solid rgba(255, 255, 255, 0.4);
    padding: 10px 40px;
    z-index: 50;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .assessment-coming-soon section.assessment-target::before {
        font-size: 3rem;
    }
}

/* YouTube Coming Soon Mechanism */
.youtube-coming-soon .youtube-target {
    filter: grayscale(100%) blur(1px);
    opacity: 0.7;
    pointer-events: none !important;
    position: relative;
    cursor: not-allowed;
    user-select: none;
}

.youtube-coming-soon section.youtube-target::before {
    content: "COMING SOON";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-size: 6rem;
    font-weight: 900;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.8);
    border: 8px solid #ffffff;
    padding: 20px 0;
    width: 120%;
    text-align: center;
    z-index: 50;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .youtube-coming-soon section.youtube-target::before {
        font-size: 3rem;
    }
}

/* --- Article Typography & Layout --- */
.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
    /* gray-700 */
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: #111827;
    /* gray-900 */
    line-height: 1.2;
}

.article-body h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: #111827;
}

.article-body blockquote {
    position: relative;
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    border-left: 4px solid #9333ea;
    /* purple-600 */
    background: #fdfdfd;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4b5563;
    /* gray-600 */
    border-radius: 0 1.5rem 1.5rem 0;
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    font-size: 6rem;
    color: #f3e8ff;
    /* purple-100 */
    font-family: serif;
    line-height: 1;
    z-index: -1;
}

/* AI Citation Framework Box */
.direct-answer-box {
    margin: 3rem 0;
    padding: 2.5rem;
    background: #f0f9ff;
    /* blue-50 */
    border-left: 6px solid #0284c7;
    /* blue-600 */
    border-radius: 0.75rem;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.direct-answer-box h4 {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0369a1;
    /* blue-700 */
    margin: 1.25rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.direct-answer-box h4:first-child {
    margin-top: 0;
}

.direct-answer-box h4::before {
    content: "";
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    background: #0284c7;
    border-radius: 50%;
}

.direct-answer-box p {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #0c4a6e !important;
    /* blue-900 */
    margin: 0 !important;
}

.article-body ul,
.article-body ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    position: relative;
}

.article-body ul li::before {
    content: "•";
    color: #8e44ad;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.article-body strong {
    color: #111827;
    font-weight: 700;
}

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #8e44ad, #e67e22);
    z-index: 100;
}

/* Related Posts Card Improvements */
.related-post-card {
    background: white;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border-color: #e5e7eb;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .article-body {
        font-size: 1.1rem;
    }

    .article-body h2 {
        font-size: 1.75rem;
    }
}