:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --accent: #4ade80;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    padding: 40px 20px;
    overflow-x: hidden;
    position: relative;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    animation: move 30s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.back-btn {
    color: var(--text-main);
    text-decoration: none;
    background: var(--glass-bg);
    padding: 12px 24px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
    border-color: var(--primary);
}

.brand-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

h1 .emoji {
    -webkit-text-fill-color: initial;
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
}

.notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #93c5fd;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 20px;
    text-align: center;
    color: #fca5a5;
}

.news-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 35px;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.news-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card:hover .news-title a {
    color: var(--primary);
}

.news-summary {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
    text-transform: uppercase;
}

.badge-summary,
.badge-ai {
    background: rgba(0, 210, 255, 0.2);
    color: var(--primary);
}

.badge-original {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-dim);
}

.badge-apple {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.news-date {
    color: var(--text-dim);
    font-size: 0.9rem;
    opacity: 0.7;
    display: block;
    margin-top: 15px;
}

footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    opacity: 0.7;
}

footer .source-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

footer .source-label {
    font-weight: 600;
    color: var(--text-dim);
}

footer .source-text {
    color: var(--text-dim);
    opacity: 0.8;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .news-card {
        padding: 25px;
    }

    .news-title {
        font-size: 1.3rem;
    }

    footer {
        font-size: 0.8rem;
    }
}