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

:root {
    --primary-color: #0066cc;
    --primary-dark: #004a99;
    --primary-light: #3385d6;
    --secondary-color: #f5f7fa;
    --text-primary: #0d0d0d;
    --text-secondary: #525252;
    --text-light: #8c8c8c;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-shadow: 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.header {
    background: #ffffff;
    color: var(--text-primary);
    padding: 12px 32px;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    position: relative;
}

.header h1 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.3px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header h1 svg {
    opacity: 0.8;
}

.header-subtitle {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0;
}

.content {
    flex: 1;
    padding: 28px 0;
    padding-top: 72px;
    background: #f8f9fa;
}

.empty-state {
    text-align: center;
    padding: 80px 32px;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin: 0 20px;
}

.empty-state svg {
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.empty-state small {
    font-size: 14px;
    color: var(--text-secondary);
}

.press-release-card {
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-color);
    border-radius: 0;
    padding: 18px 24px;
    margin: 0 0 24px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    width: 100%;
}

.press-release-card.sentiment-positive {
    border-left-color: #22c55e;
}

.press-release-card.sentiment-neutral {
    border-left-color: #eab308;
}

.press-release-card.sentiment-negative {
    border-left-color: #ef4444;
}

.press-release-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-right-color: var(--border-color);
    border-top-color: var(--border-color);
    border-bottom-color: var(--border-color);
    transform: translateY(-1px);
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.company-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    border-radius: 0;
    overflow: hidden;
}

.company-logo:has(.company-logo-img) {
    background: white;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-info-inline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.stock-symbol-inline {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.company-name-inline {
    font-size: 15px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    font-weight: 500;
}

.publish-time {
    font-size: 13px;
    color: #a1a1aa;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    font-weight: 400;
    align-self: center;
}

.type-badge-container {
    margin-bottom: 12px;
}

.type-badge-small {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 600;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    background-color: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
}

.press-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.5px;
}

.press-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.badges-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
    border-radius: 4px;
}

.impact-badge {
    background-color: #374151;
    color: white;
}

.impact-positive {
    background-color: #374151;
    color: white;
}

.impact-neutral {
    background-color: #374151;
    color: white;
}

.impact-negative {
    background-color: #374151;
    color: white;
}

.sentiment-badge {
    background-color: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
}

.type-badge {
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
}

.analysis-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10b981;
    color: white;
    text-decoration: none;
    padding: 0 20px;
    height: 44px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 0;
    width: 100%;
    line-height: 1;
    letter-spacing: -0.1px;
}

.analysis-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.analysis-btn:active {
    transform: translateY(0);
}

.analysis-btn svg {
    flex-shrink: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0;
    gap: 20px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.1px;
    box-shadow: var(--card-shadow);
    border-radius: 0;
}

.pagination-btn:hover {
    border-color: var(--text-primary);
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-hover);
}

.page-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    letter-spacing: -0.1px;
}

.footer {
    background: white;
    padding: 28px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.footer p {
    margin: 6px 0;
    letter-spacing: -0.1px;
}

.footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

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

.footer-note {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

@media (min-width: 768px) {
    .container {
        margin: 0 auto;
    }
    
    .header {
        padding: 12px 40px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .header-subtitle {
        font-size: 13px;
    }

    .content {
        padding: 32px 0;
    }

    .press-release-card {
        padding: 24px 32px;
    }

    .press-title {
        font-size: 26px;
    }
    
    .empty-state {
        margin: 0 32px;
    }
}

@media (max-width: 360px) {
    .card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .read-more-btn {
        justify-content: center;
        width: 100%;
    }
}
