/**
 * Intro Section Component
 * Styles for the homepage introduction section
 */

/* Intro section styles - Extends glass-base with specific layout */
.intro-container {
    display: flex;
    gap: 2em;
    align-items: center;
    margin: 2em auto;
    padding: 2em;
    max-width: 1100px;
    width: 100%;
    /* Ensure it takes full width up to max-width */
    box-sizing: border-box;
    /* Include padding and border in width calculation */
    position: relative;
    isolation: isolate;

    /* Extend glass-base - uses variables from glass-effects.css */
    background: linear-gradient(135deg,
            rgba(var(--glass-primary-rgb), var(--glass-bg-opacity-base)) 0%,
            rgba(var(--glass-secondary-rgb), 0.08) 50%,
            rgba(var(--glass-primary-rgb), 0.12) 100%);

    backdrop-filter: blur(var(--glass-blur-intro)) saturate(var(--glass-saturation-intro));
    -webkit-backdrop-filter: blur(var(--glass-blur-intro)) saturate(var(--glass-saturation-intro));

    border-radius: var(--radius-large);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    /* Clip distorted background to rounded corners */

    box-shadow:
        var(--shadow-lg),
        var(--shadow-inset);
}

/* Highlight and Illumination layers inherited from glass-base */
/* Override border-radius to match intro-container */
.intro-container::before {
    border-radius: var(--radius-large);
}

.intro-container::after {
    border-radius: var(--radius-large);
}

/* Ensure content is above glass layers */
.intro-container>* {
    position: relative;
    z-index: 2;
}

/* Image containers */
.intro-image {
    position: relative;
    min-width: 200px;
}

.intro-image-left {
    flex: 2;
    max-width: 40%;
}

.intro-image-right {
    flex: 1;
    max-width: 15%;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(0.75);
}

.intro-image img:hover {
    transform: scale(0.765);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Thumbs up emoji animation */
.thumbs-up-emoji {
    position: absolute;
    pointer-events: none;
    animation: thumbsUpAnimation 1s ease-out forwards;
    z-index: 100;
}

/* Pure emoji styling - large and no background */
.thumbs-up-emoji.emoji-only {
    font-size: 4.5em;
}

/* Text bubble styling */
.thumbs-up-emoji.text-bubble {
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(93, 143, 179, 0.9) 0%, rgba(137, 207, 240, 0.9) 100%);
    padding: 0.3em 0.6em;
    border-radius: var(--radius-badge);
    backdrop-filter: blur(5px);
}

@keyframes thumbsUpAnimation {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-30px) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }
}

.intro-image .image-caption {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-align: center;
    margin-top: 0.8em;
    line-height: 1.4;
    padding: 0 1em;
}

.intro-content {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-content h1 {
    font-weight: 500;
    letter-spacing: -0.01em;
}

.intro-content h2 {
    color: var(--color-text-title);
    margin-bottom: 1em;
    font-size: 1.8em;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.intro-content h3 {
    font-weight: 400;
    letter-spacing: 0;
}

.intro-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1.5em;
    color: var(--color-text-body);
}

@media (max-width: 1024px) {
    .intro-container {
        flex-direction: column;
        padding: 1.5em;
        gap: 2em;
    }

    .intro-image {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        /* Remove min-width on mobile */
    }

    .intro-content {
        width: 100%;
        min-width: 0;
        /* Remove min-width on mobile */
        order: 2;
    }

    .intro-image-left {
        order: 1;
    }

    .intro-image-right {
        order: 3;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .intro-container {
        padding: 1em;
        gap: 1em;
        margin: 1em auto;
    }
}

/* Tags styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tags {
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--color-content-type-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-content-type-light);
    padding: 0.5em 0.75em;
    border-radius: 7.5px;
    margin: 0.5em;
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-content-type-border);
    will-change: transform;
    cursor: pointer;
    text-decoration: none !important;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--tag-index, 0) * 0.2s);
    font-size: 1.2em;
    font-weight: 500;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(48, 71, 110, 0.3);
    border-color: rgba(48, 71, 110, 0.6);
    color: var(--color-content-type-light) !important;
}

.dark-mode .tag {
    background-color: rgba(48, 71, 110, 0.3);
    border-color: rgba(48, 71, 110, 0.5);
}

.dark-mode .tag:hover {
    background-color: rgba(48, 71, 110, 0.4);
    border-color: rgba(48, 71, 110, 0.7);
}