/* Scope everything inside #wkg-app so it never affects the rest of your site */
#wkg-app {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 8px;
}

/* Global score */
#global-score {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Tabs */
#wkg-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#wkg-tabs .tab-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
}

#wkg-tabs .tab-button.active {
    background: #e0f3ff;
    border-color: #66aee8;
}

/* Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Action list */
#action-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.action-item {
    padding: 0.3rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: background 0.2s;
}

.action-item:hover {
    background: #f0faff;
}

.action-item.selected {
    background: #dff6d8;
    border-color: #7ac27a;
}

/* Daily counter */
#daily-counter {
    font-weight: bold;
    margin-top: 1rem;
}

/* Activity breakdown */
#activity-breakdown {
    padding: 1rem 0;
}

/* Embed mode adjustments */
body.embed-mode #wkg-app,
body.embed-mode #embed-container {
    padding: 0;
    margin: 0;
}



.wkg-version {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 1rem;
}


/* TAB BAR */
#wkg-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
}

/* TAB BUTTONS */
#wkg-tabs .tab-button {
    background: #eee;
    border: 1px solid #ccc;
    border-bottom: none; /* makes it look like a tab */
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 6px 6px 0 0; /* rounded top corners */
    font-size: 1rem;
    transition: background 0.2s;
}

/* HOVER */
#wkg-tabs .tab-button:hover {
    background: #f8f8f8;
}

/* ACTIVE TAB */
#wkg-tabs .tab-button.active {
    background: #fff;
    border-color: #ccc;
    border-bottom: 2px solid #fff; /* visually connects to panel */
    font-weight: bold;
    position: relative;
    top: 2px; /* lifts active tab slightly */
}


/* CRICKET SCOREBOARD */
.scoreboard {
    display: inline-flex;
    gap: 4px;
    background: #000;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
}

/* Each digit wheel */
.score-wheel {
    width: 24px;
    height: 32px; /* visible window */
    overflow: hidden;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    position: relative;
}

/* The strip of numbers inside each wheel */
.score-wheel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

/* Each number */
.score-digit {
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: white;
    font-size: 24px;
}

#global-score.scoreboard {
    display: inline-flex !important;
    flex-direction: row !important;
}

#global-score-wheels {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.score-wheel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.9s cubic-bezier(0.25, 0.6, 0.3, 1.2);
}

/* Bounce animation for the wheel settling */
.score-wheel-inner.bounce {
    animation: wheelBounce 0.25s ease-out;
}

@keyframes wheelBounce {
    0%   { transform: translateY(var(--target)); }
    60%  { transform: translateY(calc(var(--target) + 4px)); }
    100% { transform: translateY(var(--target)); }
}



/* Global activity tab */
#activity-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-card {
    background: #ffffff;
    padding: 1.2rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.activity-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.total-card .big-number {
    font-size: 2.4rem;
    font-weight: bold;
    margin: 0.2rem 0;
}

.subtle {
    color: #666;
    font-size: 0.9rem;
}

.activity-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-card li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

.activity-card li:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
}

.value {
    font-weight: 600;
    color: #333;
}



/* Share on socials */
.share-block {
    margin-top: 1.4rem;
    padding: 1.2rem;
    background: #f7f9fc;
    border-radius: 12px;
    border: 1px solid #e3e7ee;
    text-align: center;
}

.share-block h4 {
    margin: 0 0 0.6rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.share-block p {
    margin: 0 0 1rem 0;
    font-size: 0.99rem;
    color: #444;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.share-btn {
    background: #4a7dfc;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: #3a6ae0;
}

.icon {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.share-icon {
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: transform 0.15s ease, background 0.2s ease;
}

.share-icon:hover {
    transform: scale(1.08);
}

/* Brand colours */
.share-x {
    background: #000000;
    color: white;
}

.share-whatsapp {
    background: #25D366;
    color: white;
}

.share-facebook {
    background: #1877F2;
    color: white;
}
#share-tumblr .icon {
    width: 26px;
    height: 26px;
}
.share-tumblr {
    background: #001935;
    color: white;
}
.share-tumblr:hover {
    box-shadow: 0 0 12px rgba(0, 25, 53, 0.4);
}
.share-btn svg {
    margin-right: 6px;
}


/* Brand image */
/* Mobile default */
.wkg-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.wkg-title-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.wkg-header-link a {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
}

.wkg-header-link a:hover {
    text-decoration: underline;
}

/* Desktop refinement */
@media (min-width: 768px) {
    .wkg-header {
        text-align: left;
    }

    .wkg-title-image {
        max-width: 60%;   /* your requested size */
    }
}
