/* ==========================================
   Indexpo Tweets – Communication on X
   ========================================== */

#indexpo-tweets {
    position: relative;
    background: linear-gradient(180deg, #0d0d14 0%, #150d25 100%);
    border-radius: 20px;
    padding: 32px 36px 28px;
    overflow: hidden;
}

/* Header */
.ixpt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ixpt-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.ixpt-nav {
    display: flex;
    gap: 8px;
}

.ixpt-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #2a2a3e;
    background: rgba(255,255,255,.05);
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.ixpt-arrow:hover:not(:disabled) {
    border-color: #2968FA;
    color: #fff;
    background: rgba(41,104,250,.15);
}

.ixpt-arrow:disabled {
    opacity: .3;
    cursor: default;
}

.ixpt-arrow svg {
    display: block;
}

/* Viewport & Track */
.ixpt-viewport {
    overflow: hidden;
    border-radius: 14px;
    width: 100%;
}

.ixpt-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    width: 100%;
}

#indexpo-tweets .ixpt-page {
    min-width: 100%;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto;
    gap: 16px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Tweet Card */
.ixpt-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: all .25s;
    backdrop-filter: blur(8px);
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}

.ixpt-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(41,104,250,.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
}

.ixpt-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.ixpt-card__readmore {
    font-size: 13px;
    font-weight: 600;
    color: #2968FA;
    transition: color .2s;
}

.ixpt-card:hover .ixpt-card__readmore {
    color: #5B8EFF;
}

.ixpt-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.ixpt-card__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}

.ixpt-card__user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.ixpt-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ixpt-card__handle {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ixpt-card__sentiment {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid;
    flex-shrink: 0;
    white-space: nowrap;
}

.ixpt-card__sentiment:empty {
    display: none;
}

/* Dots */
.ixpt-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 22px;
}

.ixpt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    cursor: pointer;
    transition: all .25s;
    padding: 0;
}

.ixpt-dot:hover {
    background: rgba(255,255,255,.3);
}

.ixpt-dot.active {
    background: #2968FA;
    box-shadow: 0 0 8px rgba(41,104,250,.5);
}

/* Empty */
.ixpt-empty {
    color: #555;
    text-align: center;
    padding: 48px 0;
    font-size: 15px;
    min-width: 100%;
}

/* Skeleton */
@keyframes ixpt-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.ixpt-skel {
    pointer-events: none;
}

.ixpt-skel__line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
    background-size: 800px 100%;
    animation: ixpt-shimmer 1.6s infinite ease-in-out;
    margin-bottom: 10px;
}

.ixpt-skel__bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.ixpt-skel__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
    background-size: 800px 100%;
    animation: ixpt-shimmer 1.6s infinite ease-in-out;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 900px) {
    #indexpo-tweets .ixpt-page {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto auto auto;
    }
    #indexpo-tweets {
        padding: 24px 20px 20px;
    }
    .ixpt-title {
        font-size: 20px;
    }
}

@media (max-width: 560px) {
    #indexpo-tweets .ixpt-page {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto;
    }
    #indexpo-tweets {
        padding: 20px 16px 16px;
        border-radius: 14px;
    }
}
