/**
 * Custom Tweet Card Styles
 * Supports light and dark mode
 */

.tweet-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tweet-card-link:hover {
    text-decoration: none;
}

.tweet-card-link:hover .tweet-card {
    border-color: #ccd6dd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dark-mode .tweet-card-link:hover .tweet-card {
    border-color: #4a4a4a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tweet-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 16px;
    max-width: 550px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 10px 0;
    transition: background-color 0.3s, border-color 0.3s;
}

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

.tweet-author {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 10px;
}

.tweet-author-info {
    display: flex;
    flex-direction: column;
}

.tweet-name {
    font-weight: 700;
    font-size: 15px;
    color: #0f1419;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    color: #1d9bf0;
}

.tweet-handle {
    font-size: 14px;
    color: #536471;
}

.tweet-logo {
    color: #0f1419;
}

.tweet-logo:hover {
    color: #1d9bf0;
}

.tweet-body {
    margin-bottom: 12px;
}

.tweet-text {
    font-size: 15px;
    line-height: 1.5;
    color: #0f1419;
    margin: 0 0 12px 0;
    word-wrap: break-word;
}

.tweet-text a {
    color: #9b111e;
    text-decoration: none;
}

.tweet-text a:hover {
    color: #7a0d18;
    text-decoration: underline;
}

.tweet-media {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
}

.tweet-media img {
    width: 100%;
    height: auto;
    display: block;
}

.tweet-video {
    position: relative;
}

.tweet-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(29, 155, 240, 0.9);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tweet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e1e8ed;
    font-size: 14px;
    color: #536471;
}

.tweet-date {
    color: #536471;
}

.tweet-likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tweet-likes svg {
    color: #536471;
}

/* Dark mode styles */
.dark-mode .tweet-card {
    background: #16181c;
    border-color: #2f3336;
}

.dark-mode .tweet-name {
    color: #e7e9ea;
}

.dark-mode .tweet-handle {
    color: #71767b;
}

.dark-mode .tweet-logo {
    color: #e7e9ea;
}

.dark-mode .tweet-text {
    color: #e7e9ea;
}

.dark-mode .tweet-text a {
    color: #e63946;
}

.dark-mode .tweet-text a:hover {
    color: #ff5a67;
}

.dark-mode .tweet-footer {
    border-top-color: #2f3336;
}

.dark-mode .tweet-date,
.dark-mode .tweet-likes,
.dark-mode .tweet-likes svg {
    color: #71767b;
}

/* Responsive */
@media (max-width: 600px) {
    .tweet-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Tweet Slider Styles */
.tweet-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.tweet-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.tweet-slide {
    width: 33.333%;
    min-width: 33.333%;
    max-width: 33.333%;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.tweet-slide .tweet-card {
    max-width: 100%;
}

.tweet-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.tweet-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.tweet-slider-dot.active {
    background: #9b111e;
}

.dark-mode .tweet-slider-dot {
    background: #444;
}

.dark-mode .tweet-slider-dot.active {
    background: #e63946;
}

/* Responsive: single slide on mobile */
@media (max-width: 768px) {
    .tweet-slide {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}
