/* HaberAkış RSS Styles */

.haberakis-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Filters */
.haberakis-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.haberakis-filter {
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.haberakis-filter:hover {
    background: #ffffff;
    border-color: #2271b1;
    color: #2271b1;
}

.haberakis-filter.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

/* Grid */
.haberakis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Card */
.haberakis-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    /* Horizontal */
    transition: transform 0.2s, box-shadow 0.2s;
    height: 160px;
    /* Fixed height for consistency */
}

.haberakis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.haberakis-card-image {
    width: 200px;
    /* Fixed width for image column */
    height: 100%;
    flex-shrink: 0;
    background: #f0f0f1;
    overflow: hidden;
}

.haberakis-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haberakis-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    /* Prevent text overflow */
    justify-content: space-between;
    /* Space out elements */
}

.haberakis-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #646970;
    margin-bottom: 10px;
}

.haberakis-source {
    background: #eef3f9;
    color: #2271b1;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.haberakis-card-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    /* Bold */
}

.haberakis-card-title a {
    text-decoration: none;
    color: #1d2327;
    transition: color 0.1s;
}

.haberakis-card-title a:hover {
    color: #2271b1;
}

.haberakis-card-snippet {
    font-size: 14px;
    color: #50575e;
    line-height: 1.5;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    font-size: 13px;
    /* Smaller summary */
    margin-bottom: 5px;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.haberakis-read-more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
    align-self: flex-end;
}

.haberakis-read-more:hover {
    text-decoration: underline;
}

/* Load More */
.haberakis-load-more {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

#haberakis-load-btn {
    background: #fff;
    border: 1px solid #2271b1;
    color: #2271b1;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

#haberakis-load-btn:hover {
    background: #2271b1;
    color: #fff;
}

#haberakis-load-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dark Mode Support (Basic) */
@media (prefers-color-scheme: dark) {
    .haberakis-card {
        background: #1e1e1e;
        border-color: #333;
    }

    .haberakis-card-title a {
        color: #ddd;
    }

    .haberakis-card-snippet {
        color: #aaa;
    }

    .haberakis-card-snippet {
        color: #aaa;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .haberakis-card {
        flex-direction: column;
        height: auto;
    }

    .haberakis-card-image {
        width: 100%;
        height: 200px;
    }

    .haberakis-card-content {
        padding: 15px;
    }
}