/**
 * Kentiçi İstanbul - Custom Twitter News Styles
 * Matches existing haberler.html design
 */

/* Override default container to match existing grid */
.twitter-news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    justify-items: center;
    justify-content: center;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Match existing .news-item styling exactly */
.twitter-news-card {
    width: 100%;
    max-width: 350px;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.twitter-news-card:hover {
    transform: translateY(-5px);
}

/* Hide default header (we'll show author in footer) */
.twitter-news-header {
    display: none;
}

/* Title - yellow like existing news */
.twitter-news-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffe400;
    font-weight: 600;
    margin-top: 0;
}

/* Content/Excerpt */
.twitter-news-content {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
}

/* Images - match existing news item images */
.twitter-news-images {
    display: block;
    margin-bottom: 20px;
    grid-template-columns: 1fr;
    gap: 0;
}

.twitter-news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    display: block;
}

/* Only show first image to match existing design */
.twitter-news-image:nth-child(n+2) {
    display: none;
}

/* Footer with date and link */
.twitter-news-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 0;
    border-top: none;
}

.twitter-news-date {
    color: #666;
    font-size: 14px;
    order: 1;
}

/* Tweet link styled like "Devamını Oku" */
.twitter-news-link {
    display: inline-block;
    margin-top: 5px;
    color: #ffe400;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 16px;
    order: 2;
}

.twitter-news-link:hover {
    color: #FFC300;
}

/* Author info in footer (small, subtle) */
.twitter-news-author-info {
    font-size: 13px;
    color: #999;
    order: 0;
    margin-bottom: 5px;
}

.twitter-news-author-name {
    font-weight: 500;
    color: #666;
    font-size: 13px;
}

.twitter-news-username {
    color: #999;
    font-size: 12px;
}

/* Load More Button - yellow like site theme */
.twitter-news-load-more {
    display: block;
    width: auto;
    max-width: 300px;
    margin: 2rem auto;
    padding: 15px 30px;
    background-color: #ffe400;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.twitter-news-load-more:hover {
    background-color: #FFC300;
    transform: scale(1.06);
}

.twitter-news-load-more:active {
    transform: scale(0.98);
}

/* Loading State */
.twitter-news-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 18px;
}

/* Empty State */
.twitter-news-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 18px;
}

/* Error State */
.twitter-news-error {
    text-align: center;
    padding: 2rem 1rem;
    color: #c33;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 10px;
    margin: 20px;
}

/* Mobile Responsiveness - match existing site */
@media (max-width: 992px) {
    .twitter-news-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .twitter-news-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }

    .twitter-news-card {
        max-width: 100%;
    }

    .twitter-news-image {
        height: 200px !important;
    }

    .twitter-news-title {
        font-size: 20px !important;
    }

    .twitter-news-content {
        font-size: 15px !important;
    }

    .twitter-news-load-more {
        width: 100%;
        margin: 15px 0;
    }
}
