body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: transparent;
    overflow: hidden;
}

.box {
    position: relative;
    width: 300px;
    height: 80px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
}

#user_pic {
    border-radius: 50%;
    border: 2px solid #1DA1F2;
}

#name {
    font-weight: 500;
    color: #14171a;
}

.main-odo {
    font-weight: bold;
    color: #1DA1F2;
}

/* Theme variants */
.light-theme .box {
    background: #ffffff;
    border-color: #e1e8ed;
}

.light-theme #name {
    color: #14171a;
}

.dark-theme .box {
    background: #192734;
    border-color: #38444d;
}

.dark-theme #name {
    color: #ffffff;
}

.obs-mode .box {
    background: rgba(25, 39, 52, 0.9);
    border-color: rgba(56, 68, 77, 0.8);
    backdrop-filter: blur(10px);
}

.obs-mode #name {
    color: #ffffff;
}

/* Rainbow theme */
.rainbow-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd) !important;
    background-size: 400% 400% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: rainbowSlow 4s ease-in-out infinite !important;
    color: transparent !important;
}

@keyframes rainbowSlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Force rainbow on all child elements */
.rainbow-text * {
    background: inherit !important;
    background-size: inherit !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: inherit !important;
    color: transparent !important;
}

/* Responsive adjustments */
@media (max-width: 320px) {
    .box {
        width: 280px;
    }
    
    #name {
        font-size: 20px;
        width: 180px;
    }
    
    .main-odo {
        font-size: 30px;
    }
}
/* Twitter Embed Card Styles */
.twitter-embed-card {
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.stat-label i {
    font-size: 10px;
}

.powered-by {
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #38444d;
}

.powered-by a {
    color: #657786;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: #1DA1F2;
    text-decoration: none;
}

.powered-by i {
    font-size: 10px;
    margin-right: 3px;
}

/* Light theme variant */
.twitter-embed-card.light-theme {
    background: #ffffff;
    border-color: #e1e8ed;
    color: #333333;
}

.twitter-embed-card.light-theme .profile-section {
    border-bottom-color: #e1e8ed;
}

.twitter-embed-card.light-theme .username {
    color: #333333;
}

.twitter-embed-card.light-theme .stat-box {
    background: #f8f9fa;
    border-color: #e1e8ed;
}

/* Compact variant */
.twitter-embed-card.compact {
    padding: 10px;
    max-width: 280px;
}

.twitter-embed-card.compact .stats-section {
    flex-direction: column;
    gap: 8px;
}

.twitter-embed-card.compact .stat-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 6px 10px;
}

.twitter-embed-card.compact .main-stat,
.twitter-embed-card.compact .secondary-stat {
    font-size: 16px;
    margin: 0;
}

.twitter-embed-card.compact .stat-label {
    justify-content: flex-start;
    margin: 0;
}

/* Horizontal variant */
.twitter-embed-card.horizontal {
    display: flex;
    align-items: center;
    max-width: 480px;
    min-width: 350px;
    padding: 12px 15px;
}

.twitter-embed-card.horizontal .profile-section {
    margin-bottom: 0;
    margin-right: 15px;
    padding-bottom: 0;
    border-bottom: none;
    border-right: 1px solid #38444d;
    padding-right: 15px;
    flex-shrink: 0;
}

.twitter-embed-card.horizontal .stats-section {
    margin-bottom: 0;
    flex-grow: 1;
}

.twitter-embed-card.horizontal .powered-by {
    margin-top: 0;
    margin-left: 10px;
    padding-top: 0;
    border-top: none;
    flex-shrink: 0;
}

/* Responsive design */
@media (max-width: 320px) {
    .twitter-embed-card {
        max-width: 100%;
        min-width: auto;
        padding: 12px;
    }
    
    .main-stat {
        font-size: 18px;
    }
    
    .secondary-stat {
        font-size: 14px;
    }
    
    .username {
        font-size: 14px;
    }
}

/* OBS-friendly styles */
.obs-mode {
    background: transparent !important;
}

.obs-mode .twitter-embed-card {
    background: rgba(25, 39, 52, 0.95);
    backdrop-filter: blur(10px);
    border-color: rgba(56, 68, 77, 0.8);
}

/* Style for the metric icon */
#metric-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#metric-icon:hover {
    opacity: 1;
}

/* Color adjustments for likes display */
.using-likes .main-odo {
    color: #e0245e !important; /* Twitter heart color */
}

.using-likes #user_pic {
    border-color: #e0245e !important;
}
