/* styles.css - Flatprint News Styles */

/* News Section Styles */
.news-container {
    font-family: 'Courier New', Courier, monospace;
}

.news-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #000000;
}

.article-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #000000;
    background: #ffffff;
    transition: all 0.2s;
}

.article-card:hover {
    box-shadow: 5px 5px 0 #000000;
    transform: translate(-2px, -2px);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.article-rank {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    min-width: 40px;
}

.article-scores {
    display: flex;
    gap: 10px;
    font-size: 10px;
    font-weight: bold;
}

.score-badge {
    padding: 4px 8px;
    border: 2px solid #000000;
    background: #ffffff;
}

.score-badge.high {
    background: #000000;
    color: #ffffff;
}

.article-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-title a {
    color: #000000;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.article-title a:hover {
    border-bottom-color: #000000;
}

.article-text {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #333333;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.meta-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.article-source {
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    padding: 2px 6px;
    border: 1px solid #000000;
    font-size: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-date {
    color: #666666;
}

/* Search Section Styles */
.search-container {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #000000;
    background: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.search-input:focus {
    outline: none;
    background: #f8f8f8;
}

.search-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid #000000;
    background: #000000;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #ffffff;
    color: #000000;
}

.stock-info {
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #000000;
    background: #ffffff;
}

.stock-header {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.stock-price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.price-positive {
    color: #000000;
}

.price-negative {
    color: #666666;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    padding: 15px;
    border: 2px solid #000000;
    background: #f8f8f8;
}

.info-label {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 14px;
    font-weight: bold;
}

.chart-container {
    margin: 30px 0;
    padding: 20px;
    border: 2px solid #000000;
    background: #ffffff;
}

.chart-header {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000000;
}

.news-list {
    margin-top: 30px;
}

.news-list-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #000000;
    background: #ffffff;
}

.news-item-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.news-item-title a {
    color: #000000;
    text-decoration: none;
}

.news-item-title a:hover {
    text-decoration: underline;
}

.news-item-meta {
    font-size: 9px;
    color: #666666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
}

.page-btn {
    padding: 8px 12px;
    border: 2px solid #000000;
    background: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #000000;
    color: #ffffff;
}

.page-btn.active {
    background: #000000;
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .article-header {
        flex-direction: column;
    }

    .article-scores {
        margin-top: 10px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}