/* ===================================
   Security Desk - Main Page Styles
   메인 페이지 전용 스타일
   =================================== */

/* Hero Section (검색 중심) */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: radial-gradient(circle at 50% 10%, #1e293b 0%, var(--bg-body) 60%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-sub);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(22, 31, 50, 0.8);
    color: white;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
    transition: 0.3s;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

/* Dashboard Grid Layout */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 60px;
    display: grid;
    grid-template-columns: 2fr 1.2fr; /* 2:1 비율 */
    gap: 24px;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: block;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Card Styles */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.bento-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Featured Article (Left) */
.featured-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.article-title a {
    color: var(--text-main);
}

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

.article-desc {
    color: var(--text-sub);
    line-height: 1.6;
}

.article-meta {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-sub);
    display: flex;
    gap: 12px;
    align-items: center;
}

.badge-pro {
    background: linear-gradient(45deg, #38BDF8, #2563EB);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
}

/* Daily Feed */
.feed-list {
    display: flex;
    flex-direction: column;
}

.feed-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 15px;
    align-items: start;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-sub);
    background: #1e293b;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.feed-content h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 500;
}

.feed-content h4 a {
    color: var(--text-main);
}

.feed-content h4 a:hover {
    color: var(--primary);
}

.feed-source {
    font-size: 0.75rem;
    color: #64748B;
}

/* Trending Keywords */
.tag-keyword {
    background: #1e293b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    display: inline-block;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-keyword:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #0F172A;
}

/* Public Data Ticker (Bottom) */
.ticker-wrap {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #0F172A;
    border-top: 1px solid var(--border);
    padding: 10px 0;
    z-index: 50;
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-sub);
}

.ticker-tag {
    color: var(--accent);
    margin-right: 6px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .article-title {
        font-size: 1.2rem;
    }
}
