/* Hero & Main Layout */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 62px 24px 32px 24px;
    box-sizing: border-box;
}

/* AI Hero Section */
.ai-hero {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
}

.ai-hero-content {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-hero-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 32px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.ai-composer-wrap {
    width: 100%;
    max-width: 720px;
    position: relative;
}

.ai-composer {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ai-composer:focus-within {
    border-color: var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.ai-composer-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-color);
    padding: 12px 0;
    font-family: var(--font-main);
}

.ai-composer-input::placeholder {
    color: var(--secondary-text);
    opacity: 0.7;
}

.ai-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--text-color);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.ai-send-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.ai-send-btn:active {
    transform: scale(0.95);
}

.ai-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.ai-chip {
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.ai-chip:hover {
    background: var(--pill-bg);
    color: var(--text-color);
    border-color: var(--pill-hover);
}

@media (max-width: 768px) {
    .ai-hero {
        min-height: 300px;
        padding: 40px 16px 30px;
    }
    
    .ai-hero-title {
        font-size: 26px;
        margin-bottom: 24px;
    }
    
    .ai-composer {
        padding: 4px 4px 4px 16px;
    }
    
    .ai-chips {
        gap: 8px;
    }
    
    .ai-chip {
        font-size: 12px;
        padding: 0 12px;
        height: 32px;
    }
}

.content-grid {
    display: grid;
    grid-template-columns: 3.5fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.left-column.sticky-container {
    position: sticky;
    top: 58px;
}

.right-column.scrollable-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    justify-self: end;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-card);
    margin-bottom: 16px;
    border-radius: 6px;
    cursor: pointer;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
    display: inline-block;
}

.card-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
    letter-spacing: -0.01em;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.image-wrapper:hover .card-overlay-text {
    transform: translate(-50%, -50%) scale(1.05);
}

.image-wrapper img,
.image-wrapper video,
.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    transform: scale(1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Only trigger hover on the image/video itself, not the wrapper */
.image-wrapper img:hover,
.image-wrapper video:hover,
.image-wrapper .video-poster:hover {
    transform: scale(1.05);
}

.lazy-video-wrapper .video-poster,
.lazy-video-wrapper video {
    position: absolute;
    inset: 0;
}

/* Scrollable list hover effects - more precise */
.scrollable-list .side-card .image-wrapper img:hover,
.scrollable-list .side-card .image-wrapper video:hover,
.scrollable-list .side-card .image-wrapper .video-poster:hover {
    transform: scale(1.05);
}

.scrollable-list .side-card .image-wrapper img,
.scrollable-list .side-card .image-wrapper video,
.scrollable-list .side-card .image-wrapper .video-poster {
    transform: scale(1);
}

/* Overlay text hover */
.scrollable-list .side-card:hover .image-wrapper .card-overlay-text {
    transform: translate(-50%, -50%) scale(1.05);
}

.hero-image {
    aspect-ratio: 16 / 10;
    max-height: 800px;
}

.square-image {
    aspect-ratio: 1 / 1;
}

.card-text {
    padding-right: 20px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px 0;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.hero-card .card-title {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.18;
}

.card-meta {
    font-size: 12px;
    font-weight: 400;
    color: var(--secondary-text);
    margin: 0;
}

.card-meta span {
    color: var(--secondary-text);
}

.card-meta span:first-child {
    font-weight: 500;
    margin-right: 8px;
    color: var(--text-color);
}

.card-meta .meta-time {
    color: var(--secondary-text);
    font-weight: 400;
}

.hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 58px;
    font-weight: 600;
    width: 90%;
    text-align: center;
    letter-spacing: -0.02em;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover .hero-overlay-text {
    transform: translate(-50%, -50%) scale(1.05);
}

.centered-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 22px;
    font-weight: 500;
}

@media (max-width: 1024px) {
    /* Tablet / Small Desktop: Horizontal 3 columns */
    .content-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .left-column.sticky-container {
        position: static;
        width: 100%;
    }

    .right-column.scrollable-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding-bottom: 0;
        overflow-x: visible;
        scroll-snap-type: none;
        height: auto;
    }

    .right-column.scrollable-list .card-link {
        min-width: 0;
        flex-shrink: 1;
        scroll-snap-align: none;
    }

    /* Keep square aspect ratio for the 3 columns */
    .square-image {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 768px) {
    .main-container { padding: 58px 16px 24px; }
    
    /* Mobile: Vertical stack */
    .right-column.scrollable-list {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    
    /* Mobile: All images 1:1 Square */
    .hero-image, .square-image { 
        aspect-ratio: 1 / 1; 
        width: 100%;
        height: auto;
    }
    
    .hero-card .card-title { font-size: 22px; }
    .card-title { font-size: 18px; }
    .hero-overlay-text { font-size: 20px; }
    .card-text { padding-right: 0; }
    
    .ai-hero {
        min-height: auto;
        padding: 60px 16px;
    }
    
    .ai-hero-title {
        font-size: 26px;
        margin-bottom: 24px;
    }
    
    .ai-composer {
        padding: 4px 4px 4px 16px;
    }
    
    .ai-chips {
        gap: 8px;
    }
    
    .ai-chip {
        font-size: 12px;
        padding: 0 12px;
        height: 32px;
    }
}
