﻿/* Apple-Grade Design System for CMS */

/* System Font Stack */
:root {
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;
    /* Color System */
    --color-black: #1d1d1f;
    --color-gray-01: #86868b;
    --color-gray-02: #515154;
    --color-gray-03: #f5f5f7;
    --color-gray-04: #fbfbfd;
    --color-blue: #0071e3;
    --color-blue-hover: #0077ed;
    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    /* Typography Scale */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 17px;
    --text-lg: 21px;
    --text-xl: 28px;
    --text-2xl: 40px;
    --text-3xl: 48px;
    --text-4xl: 64px;
    --text-5xl: 80px;
    /* Animation */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Typography */
body {
    font-family: var(--font-system);
    font-size: var(--text-base);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--color-black);
    background: var(--color-gray-04);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
#ContentArea {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Spacing */
#FirstRow, #SecondRow, #ThirdRow, #FourthRow {
    margin-bottom: var(--space-4xl);
}

/* Section Headers */
.TodayPickHeadline {
    margin-bottom: var(--space-3xl);
}

    .TodayPickHeadline h3 {
        font-size: var(--text-3xl);
        line-height: 1.0834933333;
        font-weight: 600;
        letter-spacing: -0.003em;
        color: var(--color-black);
    }

        .TodayPickHeadline h3 a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s var(--ease-out);
        }

            .TodayPickHeadline h3 a:hover {
                color: var(--color-blue);
            }

/* First Row - Hero Layout */
#FirstRow {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
}

@media (max-width: 1068px) {
    #FirstRow {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* Main Feature Card */
.TodayPickBigOne .TodayPickPost {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.TodayPickBigOne .PickPostImageThumb {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
}

    .TodayPickBigOne .PickPostImageThumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.75;
        transition: all 0.5s var(--ease-in-out);
    }

.TodayPickBigOne .TodayPickPost:hover img {
    opacity: 0.85;
    transform: scale(1.05);
}

.TodayPickBigOne .TextPart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-3xl);
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.TodayPickBigOne .PickPostTitle a {
    color: #f5f5f7;
    font-size: var(--text-2xl);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.005em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.TodayPickBigOne .PickPostTeaser {
    margin-top: var(--space-md);
}

    .TodayPickBigOne .PickPostTeaser a {
        color: rgba(245, 245, 247, 0.8);
        font-size: var(--text-lg);
        line-height: 1.381;
        font-weight: 400;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* Side Cards */
.TodayPick23 {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

    .TodayPick23 .TodayPickPost {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: var(--color-black);
        aspect-ratio: 16/10;
    }

    .TodayPick23 .PickPostImageThumb {
        width: 100%;
        height: 100%;
    }

        .TodayPick23 .PickPostImageThumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.7;
            transition: all 0.5s var(--ease-in-out);
        }

    .TodayPick23 .TodayPickPost:hover img {
        opacity: 0.8;
        transform: scale(1.05);
    }

    .TodayPick23 .PickPostTitle {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: var(--space-xl);
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    }

        .TodayPick23 .PickPostTitle a {
            color: #f5f5f7;
            font-size: var(--text-lg);
            line-height: 1.19048;
            font-weight: 600;
            letter-spacing: -0.021em;
        }

/* Most Recent - Sidebar */
.MostRecent {
    background: var(--color-gray-04);
    border-radius: 18px;
    padding: var(--space-2xl);
}

    .MostRecent .TodayPickHeadline {
        margin-bottom: var(--space-xl);
    }

        .MostRecent .TodayPickHeadline h3 {
            font-size: var(--text-xl);
            line-height: 1.14286;
            font-weight: 600;
            letter-spacing: 0.007em;
        }

.TodayMostRecent {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s var(--ease-out);
}

    .TodayMostRecent:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .TodayMostRecent:hover {
        opacity: 0.7;
    }

    .TodayMostRecent .TextGroup {
        flex: 1;
        min-width: 0;
    }

    .TodayMostRecent .PickPostImageThumb {
        width: 120px;
        height: 68px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .TodayMostRecent .PickPostTitle {
        margin-bottom: var(--space-xs);
    }

        .TodayMostRecent .PickPostTitle a {
            color: var(--color-black);
            font-size: var(--text-base);
            line-height: 1.23536;
            font-weight: 600;
            letter-spacing: -0.022em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

    .TodayMostRecent .PickPostAuthorName {
        color: var(--color-gray-01);
        font-size: var(--text-sm);
        line-height: 1.42859;
        font-weight: 400;
    }

/* Second Row - Grid */
#SecondRow {
    margin-bottom: var(--space-4xl);
}

    #SecondRow .row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-xl);
    }

    #SecondRow .TodayPickPost {
        background: #fff;
        border-radius: 18px;
        overflow: hidden;
        transition: all 0.3s var(--ease-out);
    }

        #SecondRow .TodayPickPost:hover {
            transform: scale(0.98);
        }

    #SecondRow .PickPostImageThumb {
        width: 100%;
        aspect-ratio: 16/9;
        overflow: hidden;
    }

        #SecondRow .PickPostImageThumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s var(--ease-in-out);
        }

    #SecondRow .TodayPickPost:hover img {
        transform: scale(1.05);
    }

    #SecondRow .PickPostTitle {
        padding: var(--space-xl);
    }

        #SecondRow .PickPostTitle a {
            color: var(--color-black);
            font-size: var(--text-lg);
            line-height: 1.381;
            font-weight: 600;
            letter-spacing: -0.021em;
        }

/* Third Row */
#ThirdRow .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

@media (max-width: 1068px) {
    #ThirdRow .row {
        grid-template-columns: 1fr;
    }
}

#ThirdRow .trendingitem:first-child .PickPostImageThumb {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

#ThirdRow .PickPostTitle.BigOne a {
    font-size: var(--text-xl);
    line-height: 1.14286;
    font-weight: 600;
    letter-spacing: 0.007em;
    color: var(--color-black);
}

#ThirdRow .PickPostTeaser a {
    color: var(--color-gray-01);
    font-size: var(--text-base);
    line-height: 1.47059;
}

/* Small Articles */
#ThirdRow .FourSmallerPiece .TodayPickPost {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

    #ThirdRow .FourSmallerPiece .TodayPickPost:last-child {
        border-bottom: none;
    }

#ThirdRow .FourSmallerPiece .PickPostImageThumb {
    width: 160px;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
}

#ThirdRow .FourSmallerPiece .PickPostTitle a {
    color: var(--color-black);
    font-size: var(--text-base);
    line-height: 1.47059;
    font-weight: 600;
    letter-spacing: -0.022em;
}

/* Premium Badge */
.premium-outline {
    display: inline-flex;
    align-items: center;
    background: var(--color-blue);
    color: white;
    padding: 2px 10px;
    border-radius: 980px;
    font-size: var(--text-xs);
    font-weight: 500;
    margin-left: var(--space-sm);
    vertical-align: middle;
}

/* Links */
a {
    text-decoration: none;
    transition: opacity 0.3s var(--ease-out);
}

    a:hover {
        opacity: 0.8;
    }

/* Images */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Hide Elements */
hr {
    display: none;
}

.PickPostAuthorName a {
    display: none;
}

/* Loading State */
@keyframes skeleton {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.PickPostImageThumb:empty {
    background: var(--color-gray-03);
    animation: skeleton 1.5s ease-in-out infinite;
}
/* Second Row - Modern Grid Design */
#SecondRow {
    margin-bottom: var(--space-4xl);
}

    #SecondRow .TodayPickHeadline {
        text-align: center;
        margin-bottom: var(--space-3xl);
    }

        #SecondRow .TodayPickHeadline h3 {
            font-size: var(--text-3xl);
            font-weight: 700;
        }

.SecondRowGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.SecondRowCard .TodayPickPost {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s var(--ease-out);
    height: 100%;
}

    .SecondRowCard .TodayPickPost:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

.SecondRowCard .PickPostImageThumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

    .SecondRowCard .PickPostImageThumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s var(--ease-in-out);
    }

.SecondRowCard .TodayPickPost:hover .PickPostImageThumb img {
    transform: scale(1.08);
}

.SecondRowCard .CardContent {
    padding: var(--space-xl);
}

.SecondRowCard .PickPostTitle a {
    color: var(--color-black);
    font-size: var(--text-lg);
    line-height: 1.381;
    font-weight: 600;
    letter-spacing: -0.021em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fourth Row - Editorial Columns */
#FourthRow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
}

.FourthRowColumn {
    background: var(--color-gray-03);
    border-radius: 18px;
    overflow: hidden;
}

    .FourthRowColumn .ColumnHeader {
        padding: var(--space-xl) var(--space-xl) var(--space-lg);
    }

        .FourthRowColumn .ColumnHeader h3 {
            margin: 0;
        }

            .FourthRowColumn .ColumnHeader h3 a {
                color: var(--color-black);
                font-size: var(--text-xl);
                font-weight: 700;
                letter-spacing: 0.007em;
                text-decoration: none;
                transition: color 0.3s var(--ease-out);
            }

                .FourthRowColumn .ColumnHeader h3 a:hover {
                    color: var(--color-blue);
                }

    .FourthRowColumn .FeaturedImage {
        display: block;
        width: 100%;
        aspect-ratio: 16/9;
        overflow: hidden;
        margin: 0 var(--space-xl);
        width: calc(100% - var(--space-2xl));
        border-radius: 12px;
    }

        .FourthRowColumn .FeaturedImage img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s var(--ease-in-out);
        }

        .FourthRowColumn .FeaturedImage:hover img {
            transform: scale(1.05);
        }

    .FourthRowColumn .ArticleList {
        padding: var(--space-xl);
    }

    .FourthRowColumn .ArticleItem {
        padding: var(--space-md) 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

        .FourthRowColumn .ArticleItem:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .FourthRowColumn .ArticleItem a {
            color: var(--color-black);
            font-size: var(--text-base);
            line-height: 1.47059;
            font-weight: 500;
            letter-spacing: -0.022em;
            text-decoration: none;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.3s var(--ease-out);
        }

            .FourthRowColumn .ArticleItem a:hover {
                color: var(--color-blue);
            }

/* Responsive for Second Row */
@media screen and (max-width: 1067px) {
    .SecondRowGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media screen and (max-width: 734px) {
    .SecondRowGrid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    #SecondRow .TodayPickHeadline h3 {
        font-size: var(--text-2xl);
    }
}

/* Responsive for Fourth Row */
@media screen and (max-width: 1067px) {
    #FourthRow {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .SecondRowCard .TodayPickPost {
        background: var(--color-gray-03);
    }

    .FourthRowColumn {
        background: #1d1d1f;
    }

        .FourthRowColumn .ArticleItem {
            border-color: rgba(255,255,255,0.06);
        }
}