/**
 * Polymarket Widget Styles - Compact CTA-Focused Design
 */

.polymarket-widget-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.polymarket-widget-container {
    margin: 20px 0;
    position: relative;
}

.polymarket-widget-container.polymarket-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ========================================
   COMPACT LAYOUT (Default - Tight & CTA-Focused)
   ======================================== */

.polymarket-layout-compact .polymarket-markets-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.polymarket-layout-compact .polymarket-market-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #fff;
    padding: 12px 16px;
}

.polymarket-layout-compact .polymarket-market-card:hover {
    border-color: #1E3E62;
    box-shadow: 0 2px 8px rgba(30, 62, 98, 0.15);
    transform: translateX(2px);
}

.polymarket-layout-compact .polymarket-market-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.polymarket-layout-compact .polymarket-market-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.polymarket-layout-compact .polymarket-market-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f3f4f6;
}

.polymarket-layout-compact .polymarket-market-title {
    font-size: 15px !important;
    font-weight: 600;
    margin: 0 !important;
    color: #1a1a1a;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.polymarket-layout-compact .polymarket-market-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.polymarket-layout-compact .polymarket-market-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.polymarket-layout-compact .polymarket-volume,
.polymarket-layout-compact .polymarket-end-date {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* ========================================
   DETAILED LAYOUT (Category + Volume)
   ======================================== */

.polymarket-layout-detailed .polymarket-markets-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.polymarket-layout-detailed .polymarket-market-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #fff;
    padding: 12px 16px;
}

.polymarket-layout-detailed .polymarket-market-card:hover {
    border-color: #1E3E62;
    box-shadow: 0 2px 8px rgba(30, 62, 98, 0.15);
    transform: translateX(2px);
}

.polymarket-layout-detailed .polymarket-market-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.polymarket-layout-detailed .polymarket-market-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.polymarket-layout-detailed .polymarket-market-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f3f4f6;
}

.polymarket-layout-detailed .polymarket-market-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.polymarket-layout-detailed .polymarket-market-title {
    font-size: 15px !important;
    font-weight: 600;
    margin: 0 !important;
    color: #1a1a1a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.polymarket-layout-detailed .polymarket-market-category {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.polymarket-layout-detailed .polymarket-market-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.polymarket-layout-detailed .polymarket-market-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.polymarket-layout-detailed .polymarket-volume {
    background: #f0f6fc;
    color: #1E3E62;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.polymarket-layout-detailed .polymarket-cta-button {
    padding: 7px 18px;
    font-size: 13px;
}

/* Responsive for detailed layout */
@media (max-width: 768px) {
    .polymarket-layout-detailed .polymarket-market-content {
        flex-wrap: wrap;
    }

    .polymarket-layout-detailed .polymarket-market-footer {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        margin-left: 0;
    }

    .polymarket-layout-detailed .polymarket-cta-button {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .polymarket-layout-detailed .polymarket-market-thumb {
        width: 32px;
        height: 32px;
    }

    .polymarket-layout-detailed .polymarket-market-title {
        font-size: 14px !important;
    }

    .polymarket-layout-detailed .polymarket-market-category {
        font-size: 10px;
    }

    .polymarket-layout-detailed .polymarket-volume {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ========================================
   LIST LAYOUT (Ultra Compact)
   ======================================== */

.polymarket-layout-list .polymarket-markets-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.polymarket-layout-list .polymarket-market-card {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.15s ease;
    background: #fff;
    padding: 10px 14px;
}

.polymarket-layout-list .polymarket-market-card:hover {
    border-color: #1E3E62;
    background: #f9fafb;
}

.polymarket-layout-list .polymarket-market-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.polymarket-layout-list .polymarket-market-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.polymarket-layout-list .polymarket-market-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f3f4f6;
}

.polymarket-layout-list .polymarket-market-title {
    font-size: 14px !important;
    font-weight: 500;
    margin: 0 !important;
    color: #1a1a1a;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.polymarket-layout-list .polymarket-market-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.polymarket-layout-list .polymarket-market-meta {
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: #666;
}

.polymarket-layout-list .polymarket-volume,
.polymarket-layout-list .polymarket-end-date {
    background: transparent;
    padding: 0;
    color: #999;
}

/* ========================================
   CARDS LAYOUT (Original Style)
   ======================================== */

.polymarket-layout-cards .polymarket-markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.polymarket-layout-cards .polymarket-market-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.polymarket-layout-cards .polymarket-market-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.polymarket-layout-cards .polymarket-market-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f0f0f0;
    display: block;
}

.polymarket-layout-cards .polymarket-market-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.polymarket-layout-cards .polymarket-market-title {
    font-size: 15px !important;
    font-weight: 600;
    margin: 0 0 8px 0 !important;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.polymarket-layout-cards .polymarket-market-description {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.polymarket-layout-cards .polymarket-market-footer {
    margin-top: auto;
}

.polymarket-layout-cards .polymarket-market-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.polymarket-layout-cards .polymarket-volume,
.polymarket-layout-cards .polymarket-end-date {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* ========================================
   CTA BUTTON (All Layouts)
   ======================================== */

.polymarket-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: #FF6500;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(255, 101, 0, 0.2);
}

.polymarket-cta-button:hover {
    background: #E55A00;
    box-shadow: 0 4px 8px rgba(255, 101, 0, 0.3);
    transform: translateY(-1px);
    color: #fff !important;
}

.polymarket-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(255, 101, 0, 0.3);
}

/* Compact layout button size */
.polymarket-layout-compact .polymarket-cta-button {
    padding: 7px 18px;
    font-size: 13px;
}

/* List layout button size */
.polymarket-layout-list .polymarket-cta-button {
    padding: 6px 16px;
    font-size: 12px;
}

/* Cards layout button full width */
.polymarket-layout-cards .polymarket-cta-button {
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
}

/* ========================================
   ERROR & EMPTY STATES
   ======================================== */

.polymarket-error {
    text-align: center;
    padding: 30px 20px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    color: #dc2626;
}

.polymarket-error p {
    margin: 0;
}

.polymarket-empty {
    text-align: center;
    padding: 30px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #666;
}

.polymarket-empty p {
    margin: 0;
}

/* ========================================
   FOOTER & INDICATORS
   ======================================== */

.polymarket-widget-footer {
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 15px;
}

.polymarket-widget-footer a {
    color: #999;
    text-decoration: none;
    font-size: 11px;
}

.polymarket-widget-footer a:hover {
    color: #4f46e5;
}

.polymarket-cache-info {
    text-align: center;
    margin-top: 8px;
    color: #999;
    font-size: 11px;
}

.polymarket-live-indicator {
    text-align: center;
    margin-top: 10px;
    color: #059669;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Compact layout - stack meta and button vertically on mobile */
    .polymarket-layout-compact .polymarket-market-content {
        flex-wrap: wrap;
    }

    .polymarket-layout-compact .polymarket-market-footer {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        margin-left: 0;
    }

    .polymarket-layout-compact .polymarket-cta-button {
        flex: 1;
        min-width: 100px;
    }

    /* List layout - hide meta on mobile */
    .polymarket-layout-list .polymarket-market-meta {
        display: none;
    }

    /* Cards layout - single column */
    .polymarket-layout-cards .polymarket-markets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .polymarket-layout-compact .polymarket-market-meta {
        font-size: 10px;
        gap: 4px;
    }

    .polymarket-layout-compact .polymarket-volume,
    .polymarket-layout-compact .polymarket-end-date {
        padding: 2px 6px;
        font-size: 10px;
    }
}

/* ========================================
   WordPress Block Editor Compatibility
   ======================================== */

.wp-block-shortcode .polymarket-widget-container {
    margin: 0;
}

/* Ensure buttons don't inherit theme link styles */
.polymarket-cta-button,
.polymarket-cta-button:visited,
.polymarket-cta-button:focus {
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    background-image: none !important;
}

/* ========================================
   SINGLE MARKET WIDGET - COMPACT DESIGN
   ======================================== */

.polymarket-single-market {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin: 20px 0;
    max-width: 700px;
}

.polymarket-single-market:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* White Background Style (Default) */
.polymarket-single-white {
    background: #fff;
    border: 1px solid #e5e7eb;
}

/* Branded Background Style */
.polymarket-single-branded {
    background: #1E3E62;
    border: 1px solid #2a5278;
    color: #fff;
}

.polymarket-single-branded .polymarket-single-title,
.polymarket-single-branded .polymarket-single-description,
.polymarket-single-branded .polymarket-outcome-name,
.polymarket-single-branded .polymarket-stat-label {
    color: #fff;
}

.polymarket-single-branded .polymarket-stat-value,
.polymarket-single-branded .polymarket-outcome-probability {
    color: #FFD700;
}

/* Content - Standard Size */
.polymarket-single-standard .polymarket-single-content {
    padding: 16px;
}

/* Content - Compact Size */
.polymarket-single-compact .polymarket-single-content {
    padding: 12px;
}

/* Badges */
.polymarket-single-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.polymarket-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.polymarket-badge-trending {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
}

.polymarket-badge-competitive {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
}

/* Title Row with Icon */
.polymarket-single-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.polymarket-single-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.polymarket-single-compact .polymarket-single-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* Title - Standard */
.polymarket-single-standard .polymarket-single-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 !important;
    color: #1a1a1a;
}

/* Title - Compact */
.polymarket-single-compact .polymarket-single-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 !important;
    color: #1a1a1a;
}

/* Description - Standard */
.polymarket-single-standard .polymarket-single-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0 0 12px 0;
}

/* Description - Compact */
.polymarket-single-compact .polymarket-single-description {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    margin: 0 0 10px 0;
}

/* Outcomes/Odds - Standard */
.polymarket-single-standard .polymarket-single-outcomes {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

/* Outcomes/Odds - Compact */
.polymarket-single-compact .polymarket-single-outcomes {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 10px;
}

.polymarket-single-branded .polymarket-single-outcomes {
    background: rgba(255, 255, 255, 0.08);
}

.polymarket-outcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.polymarket-single-compact .polymarket-outcome {
    padding: 4px 0;
}

.polymarket-single-branded .polymarket-outcome {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.polymarket-outcome:last-child {
    border-bottom: none;
}

/* Outcome Name - Standard */
.polymarket-single-standard .polymarket-outcome-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Outcome Name - Compact */
.polymarket-single-compact .polymarket-outcome-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Outcome Probability - Standard */
.polymarket-single-standard .polymarket-outcome-probability {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
}

/* Outcome Probability - Compact */
.polymarket-single-compact .polymarket-outcome-probability {
    font-size: 15px;
    font-weight: 700;
    color: #059669;
}

/* Stats Row - Standard */
.polymarket-single-standard .polymarket-single-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* Stats Row - Compact */
.polymarket-single-compact .polymarket-single-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.polymarket-single-branded .polymarket-single-stats {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.polymarket-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 80px;
}

.polymarket-single-compact .polymarket-stat {
    min-width: 70px;
}

/* Stat Label - Standard */
.polymarket-single-standard .polymarket-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #999;
}

/* Stat Label - Compact */
.polymarket-single-compact .polymarket-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #999;
}

/* Stat Value - Standard */
.polymarket-single-standard .polymarket-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Stat Value - Compact */
.polymarket-single-compact .polymarket-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

/* CTA Section */
.polymarket-single-cta {
    text-align: center;
}

/* CTA Button - Standard */
.polymarket-single-standard .polymarket-single-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background: #FF6500;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 101, 0, 0.3);
    width: 100%;
}

/* CTA Button - Compact */
.polymarket-single-compact .polymarket-single-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 20px;
    background: #FF6500;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 101, 0, 0.3);
    width: 100%;
}

.polymarket-single-button:hover {
    background: #E55A00;
    box-shadow: 0 4px 12px rgba(255, 101, 0, 0.4);
    transform: translateY(-1px);
    color: #fff !important;
}

.polymarket-single-button:active {
    transform: translateY(0);
}

.polymarket-single-button:visited,
.polymarket-single-button:focus {
    color: #fff !important;
    text-decoration: none !important;
}

/* ========================================
   SINGLE MARKET RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .polymarket-single-market {
        max-width: 100%;
        margin: 16px 0;
    }

    .polymarket-single-stats {
        gap: 10px;
    }

    .polymarket-stat {
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .polymarket-single-standard .polymarket-single-content {
        padding: 14px;
    }

    .polymarket-single-compact .polymarket-single-content {
        padding: 10px;
    }

    .polymarket-single-icon {
        width: 28px;
        height: 28px;
    }

    .polymarket-single-compact .polymarket-single-icon {
        width: 20px;
        height: 20px;
    }

    .polymarket-single-standard .polymarket-single-title {
        font-size: 16px;
    }

    .polymarket-single-compact .polymarket-single-title {
        font-size: 15px;
    }

    .polymarket-single-stats {
        flex-direction: column;
        gap: 8px;
    }

    .polymarket-stat {
        min-width: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ========================================
   POPULAR MARKETS WIDGET - MINIMAL SIDEBAR
   ======================================== */

.polymarket-popular-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0 !important;
    color: #1a1a1a;
}

.polymarket-popular-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.polymarket-popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    color: #1a1a1a !important;
}

.polymarket-popular-item:hover {
    border-color: #1E3E62;
    background: #f9fafb;
    transform: translateX(2px);
}

.polymarket-popular-item:visited {
    color: #1a1a1a !important;
}

.polymarket-popular-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.polymarket-popular-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Mobile - Sidebar Layout */
@media (max-width: 480px) {
    .polymarket-popular-item {
        padding: 6px 8px;
        gap: 8px;
    }

    .polymarket-popular-icon {
        width: 20px;
        height: 20px;
    }

    .polymarket-popular-name {
        font-size: 13px;
    }
}

/* ========================================
   POPULAR MARKETS WIDGET - STANDARD LAYOUT
   Reuses .polymarket-layout-compact CSS from above
   ======================================== */

/* No additional CSS needed - standard layout uses compact layout classes */
