/* History/Progress Log Tab Specific Styles */

/* Activity Logs Container */
.activity-logs-container {
    padding: 0;
    overflow-y: auto;
}

.activity-logs-list {
    padding: 16px;
}

/* Individual Activity Log Items */
.activity-log-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 4px solid var(--nintendo-red);
    background: rgba(230, 0, 18, 0.02);
    border-radius: 0 8px 8px 0;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
}

.activity-log-item:hover {
    background: rgba(230, 0, 18, 0.05);
    transform: translateX(4px);
}

.activity-log-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    line-height: 1.4;
}

.activity-timestamp {
    color: var(--nintendo-gray-dark);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: fit-content;
}

.activity-description {
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.95rem;
}

/* Type-specific styling */
.activity-log-item.xp-change {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.02);
}

.activity-log-item.xp-change:hover {
    background: rgba(76, 175, 80, 0.05);
}

.activity-log-item.level-change,.activity-log-item.name-change  {
    border-left-color: #FF9800;
    background: rgba(255, 152, 0, 0.02);
}

.activity-log-item.level-change:hover,.activity-log-item.name-change:hover {
    background: rgba(255, 152, 0, 0.05);
}

.activity-log-item.event-task-complete {
    border-left-color: #9C27B0;
    background: rgba(156, 39, 176, 0.02);
}

.activity-log-item.event-task-complete:hover {
    background: rgba(156, 39, 176, 0.05);
}

.activity-log-item.friend-xp-update {
    border-left-color: #2196F3;
    background: rgba(33, 150, 243, 0.02);
}

.activity-log-item.friend-xp-update:hover {
    background: rgba(33, 150, 243, 0.05);
}

/* Planner Update logs (Friends Updated) */
.activity-log-item.planner-update {
    border-left-color: #00BCD4;
    background: rgba(0, 188, 212, 0.02);
}

.activity-log-item.planner-update:hover {
    background: rgba(0, 188, 212, 0.05);
}

/* Celebration Page Change logs */
.activity-log-item.celebration-page-change {
    border-left-color: #E91E63;
    background: rgba(233, 30, 99, 0.02);
}

.activity-log-item.celebration-page-change:hover {
    background: rgba(233, 30, 99, 0.05);
}

/* Colored log prefixes */
.log-prefix {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    font-size: 0.9rem;
}

.log-prefix.celebration {
    color: #E91E63;
    background: rgba(233, 30, 99, 0.1);
}

.log-prefix.levelup {
    color: #9C27B0;
    background: rgba(156, 39, 176, 0.1);
}

.log-prefix.friends {
    color: #00BCD4;
    background: rgba(0, 188, 212, 0.1);
}

.log-prefix.trainer {
    color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

.log-prefix.xp {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.log-prefix.team {
    color: #3F51B5;
    background: rgba(63, 81, 181, 0.1);
}

/* XP Difference styling */
.xp-difference {
    font-weight: 700;
    font-size: 0.95rem;
}

.xp-difference.positive {
    color: #4CAF50;
}

.xp-difference.negative {
    color: #f44336;
}

/* Loading state for logs */
.activity-logs-container .loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--nintendo-gray);
    font-style: italic;
}

/* XP Logs filter select styling - Nintendo style */
.logs-filter-select {
    padding: 12px 16px;
    font-size: 14px;
    background: white;
    border: 3px solid var(--nintendo-light-gray);
    border-radius: var(--nintendo-border-radius);
    color: var(--nintendo-dark);
    font-family: var(--nintendo-font-family);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
    box-sizing: border-box;
}

.logs-filter-select:hover {
    border-color: var(--nintendo-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.15);
}

.logs-filter-select:focus {
    outline: none;
    border-color: var(--nintendo-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.1);
    transform: translateY(-2px);
}

/* Filter Controls Layout */
.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

    .card-actions .logs-filter-select {
        min-width: 130px;
        flex-shrink: 0;
    }.card-actions .nintendo-button.small {
    padding: 8px 12px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
   
    
    .activity-log-content {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .activity-timestamp {
        font-size: 0.85rem;
    }
    
    .activity-description {
        font-size: 0.9rem;
    }
    
    .card-actions {
        margin-top: 8px;
        width: 100%;
    }
    
    .card-actions .logs-filter-select {
        min-width: 120px;
        flex: 1;
        height: 44px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .card-actions .nintendo-button.small {
        flex-shrink: 0;
    }
}

/* Timeline and History Content */
.timeline-content, .history-content {
    padding: 0;
}

.timeline-item, .history-item {
    background: rgba(230, 0, 18, 0.05);
    border: 2px solid rgba(230, 0, 18, 0.1);
    border-radius: var(--nintendo-border-radius);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.timeline-item:hover, .history-item:hover {
    background: rgba(230, 0, 18, 0.1);
    transform: translateX(8px);
}

/* Progress Log Comparison Styles */
.progress-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 15px;
}

.comparison-btn {
    background: var(--nintendo-red);
    color: white;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.comparison-btn:hover {
    background: var(--nintendo-red-light);
    transform: scale(1.05);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--nintendo-primary-gradient);
    color: white;
    border-radius: var(--nintendo-border-radius) var(--nintendo-border-radius) 0 0;
}

.tooltip-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tooltip-body {
    padding: 20px;
}

.date-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.nintendo-input.compact {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 140px;
}

.nintendo-button.compact {
    padding: 8px 16px;
    font-size: 13px;
    margin-bottom: 15px;
}

.comparison-results {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric-card {
    background: var(--nintendo-card-gradient);
    border: 1px solid #dee2e6;
    border-radius: var(--nintendo-border-radius-small);
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--nintendo-shadow-light);
}

.metric-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--nintendo-red);
    margin-bottom: 2px;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--nintendo-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-card__title-group {
    display: flex;
    align-items: center;
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-body {
    padding: 16px 20px;
}

.save-description {
    font-size: 14px;
    color: var(--nintendo-gray);
    line-height: 1.5;
    margin: 0;
}

.comparison-form {
    margin-bottom: 20px;
}

.date-selection {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comparison-form .date-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.comparison-form .input-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 16px;
}

.comparison-form .input-group label {
    font-weight: 600;
    color: var(--nintendo-dark);
    margin-bottom: 8px;
    display: block;
}

/* Calculation History Items - Redesigned */
.calculation-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    border-radius: var(--nintendo-border-radius);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.calculation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.15);
    border-color: var(--nintendo-red);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: nowrap;
}

.calc-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-date {
    font-size: 16px;
    font-weight: 700;
    color: var(--nintendo-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-date::before {
    content: "📅";
    font-size: 14px;
}

.calc-level {
    font-size: 14px;
    font-weight: 700;
    background: var(--nintendo-primary-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
}

.calc-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.calc-details {
    background: rgba(230, 0, 18, 0.05);
    border-radius: var(--nintendo-border-radius-small);
    padding: 16px;
    border-left: 4px solid var(--nintendo-red);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 4px 0;
}

.calc-label {
    color: var(--nintendo-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-label::before {
    content: "⚡";
    font-size: 12px;
}

.calc-value {
    color: var(--nintendo-dark);
    font-weight: 700;
    font-size: 16px;
}

.delete-btn {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 10px;
    border-radius: var(--nintendo-border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.delete-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.history-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--nintendo-dark);
}

.nintendo-input {
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: var(--nintendo-border-radius-small);
    font-family: var(--nintendo-font-family);
    font-size: 14px;
    font-weight: 500;
    background: white;
    transition: all 0.3s ease;
    min-width: 160px;
}

.nintendo-input:focus {
    outline: none;
    border-color: var(--nintendo-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

/* Small Button Styles */
.nintendo-button.small {
    padding: 8px 16px;
    font-size: 14px;
    min-width: auto;
}

/* Date Tags Styles */
.date-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.date-tag {
    background: var(--nintendo-light-gray);
    border: 2px solid transparent;
    border-radius: var(--nintendo-border-radius-small);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nintendo-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.date-tag:hover {
    border-color: var(--nintendo-red);
    background: rgba(230, 0, 18, 0.1);
}

.date-tag.selected {
    background: var(--nintendo-red);
    color: white;
    border-color: var(--nintendo-red-dark);
}

.date-tag.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nintendo-modal-content {
    position: relative;
    background: white;
    border-radius: var(--nintendo-border-radius);
    box-shadow: var(--nintendo-shadow-heavy);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
}

/* Activity Logging Styles */
.activity-day-group {
    margin-bottom: 24px;
}

.activity-date-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nintendo-dark);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(230, 0, 18, 0.1);
    border-radius: var(--nintendo-border-radius-small);
    border-left: 4px solid var(--nintendo-red);
}

.activity-day-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(230, 0, 18, 0.1);
    border-radius: var(--nintendo-border-radius-small);
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: rgba(230, 0, 18, 0.05);
    transform: translateX(4px);
}

.activity-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nintendo-gray);
    min-width: 60px;
    text-align: center;
    background: rgba(108, 117, 125, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.activity-description {
    flex: 1;
    font-size: 0.9rem;
    color: var(--nintendo-dark);
    line-height: 1.4;
}

.activity-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--nintendo-gray);
    color: white;
}

/* Category-specific colors */
.activity-item.profile .activity-category {
    background: var(--nintendo-blue);
}

.activity-item.progress .activity-category {
    background: var(--nintendo-green);
}

.activity-item.settings .activity-category {
    background: var(--nintendo-gray);
}

.activity-item.social .activity-category {
    background: var(--nintendo-yellow);
    color: var(--nintendo-dark);
}

.activity-item.planning .activity-category {
    background: var(--nintendo-red);
}

.activity-item.event-tasks .activity-category {
    background: #FF8C00;
}

/* Activity Filter Tabs */
.activity-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(230, 0, 18, 0.05);
    border-radius: var(--nintendo-border-radius-small);
}

.activity-filter-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(230, 0, 18, 0.3);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nintendo-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-filter-btn:hover {
    background: rgba(230, 0, 18, 0.1);
    color: var(--nintendo-red);
}

.activity-filter-btn.active {
    background: var(--nintendo-red);
    color: white;
    border-color: var(--nintendo-red);
}

/* ====================================
   HISTORY TABS INTERFACE
   ==================================== */

/* Section Header with Tabs Layout */
.section-header-with-tabs {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.section-header-left {
    flex: 1;
}

/* Tab Container */
.history-tabs-container {
    flex-shrink: 0;
    align-self: center;
}

/* Desktop/Tablet Tab Navigation */
.history-tabs-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 0;
}

/* Tab Pills - Based on nav-pill design */
.history-tab-pill {
    background: var(--nintendo-light-gray);
    border: none;
    border-radius: var(--nintendo-border-radius-large);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--nintendo-font-family);
    font-weight: 600;
    font-size: 15px;
    color: var(--nintendo-gray);
    min-width: 120px;
}

.history-tab-pill:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.history-tab-pill.active {
    background: var(--nintendo-primary-gradient);
    color: white;
    box-shadow: var(--nintendo-shadow-light);
}

.tab-text {
    white-space: nowrap;
}

/* Mobile Dropdown */
.history-tabs-mobile {
    display: none;
}

.history-tab-select {
    width: 100%;
    padding: 16px 20px;
    border: 3px solid var(--nintendo-light-gray);
    border-radius: var(--nintendo-border-radius);
    background: white;
    color: var(--nintendo-dark);
    font-family: var(--nintendo-font-family);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 58px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
}

.history-tab-select:hover {
    border-color: var(--nintendo-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.15);
}

.history-tab-select:focus {
    outline: none;
    border-color: var(--nintendo-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.1);
    transform: translateY(-2px);
}

/* Tab Content */
.history-tab-content {
    display: none;
}

.history-tab-content.active {
    display: block;
}

/* ====================================
   CHANGELOGS LAYOUT
   ==================================== */

/* Main Changelog Layout */
.changelogs-layout {
    display: flex;
    gap: 0;
    position: relative;
}

.changelog-main {
    flex: 1;
    transition: all 0.3s ease;
}

/* What's Next Sidebar */
.whats-next-sidebar {
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.whats-next-sidebar.open {
    width: 30%;
    min-width: 320px;
}

.whats-next-sidebar.open .changelog-main {
    margin-right: 16px;
}

.whats-next-card {
    height: 100%;
    margin: 0;
}

/* Toggle Button Styling */
#whatsNextToggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

#whatsNextToggle.active .toggle-icon {
    transform: rotate(90deg);
}

/* What's Next Content */
.whats-next-content {
    padding: 16px;
    max-height: 600px;
    overflow-y: auto;
}

/* Changelog Content */
.changelog-content {
    padding: 0;
    max-height: 600px;
    overflow-y: auto;
}

/* Release Items */
.release-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.release-item:last-child {
    border-bottom: none;
}

.release-item:hover {
    background: rgba(230, 0, 18, 0.02);
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.release-version {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--nintendo-red);
}

.release-date {
    font-size: 0.9rem;
    color: var(--nintendo-gray);
    font-weight: 600;
}

.release-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nintendo-dark);
    margin-bottom: 12px;
}

.release-changes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.release-changes li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--nintendo-dark);
}

.release-changes li::before {
    content: "•";
    color: var(--nintendo-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Upcoming Features - Compact Sidebar Format */
.upcoming-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.upcoming-item:last-child {
    border-bottom: none;
}

.upcoming-item:hover {
    background: rgba(0, 123, 255, 0.03);
}

.upcoming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.upcoming-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--nintendo-blue);
    line-height: 1.3;
    flex: 1;
}

.priority-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.priority-badge.high {
    background: rgba(244, 67, 54, 0.15);
    color: #d32f2f;
}

.priority-badge.medium {
    background: rgba(255, 152, 0, 0.15);
    color: #f57c00;
}

.priority-badge.low {
    background: rgba(76, 175, 80, 0.15);
    color: #388e3c;
}

.upcoming-description {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--nintendo-gray-dark);
    margin-bottom: 8px;
}

.upcoming-date {
    font-size: 0.75rem;
    color: var(--nintendo-gray);
    font-weight: 600;
    margin-bottom: 8px;
    font-style: italic;
}

.upcoming-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-features li {
    padding: 2px 0;
    padding-left: 16px;
    position: relative;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--nintendo-gray-dark);
}

.upcoming-features li::before {
    content: "→";
    color: var(--nintendo-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

/* Tablet */
@media (max-width: 768px) {
    .section-header-with-tabs {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .history-tabs-container {
        align-self: stretch;
    }
    
    .changelogs-layout {
        flex-direction: column;
    }
    
    /* Hide sidebar on mobile - we use modal instead */
    .whats-next-sidebar {
        display: none !important;
    }
    
    .whats-next-sidebar.open {
        width: 100%;
        min-width: auto;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 16px;
    }
    
    .history-tab-pill {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 100px;
    }
    
    .release-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .upcoming-header {
        align-items: flex-start;
        gap: 6px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .section-header-with-tabs {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    /* Show mobile dropdown, hide desktop tabs */
    .history-tabs-nav {
        display: none;
    }
    
    .history-tabs-mobile {
        display: block;
    }
    
   
    
    .release-item,
    .upcoming-item {
        padding: 16px;
    }
    
    .release-version {
        font-size: 1rem;
    }
    
    .release-title,
    .upcoming-title {
        font-size: 0.9rem;
    }
    
    .release-changes li,
    .upcoming-features li {
        font-size: 0.85rem;
        padding-left: 16px;
    }
    
    .upcoming-description {
        font-size: 0.85rem;
    }
}

/* Responsive activity logging */
@media (max-width: 768px) {
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .activity-time {
        min-width: auto;
        align-self: flex-end;
    }
    
    .activity-filter-tabs {
        justify-content: center;
    }
    
    .activity-filter-btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* What's Next Modal (Mobile Only) */
.whats-next-modal {
    z-index: 9999;
}

.whats-next-modal .nintendo-modal-content {
    max-width: 90vw;
    max-height: 85vh;
    margin: 5vh auto;
}

.whats-next-modal .nintendo-modal-body {
    max-height: 65vh;
    overflow-y: auto;
    padding: 0;
}

.whats-next-modal-content {
    padding: 20px;
}

/* Full version upcoming items for modal */
.upcoming-item-full {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(230, 0, 18, 0.02);
    border-radius: 12px;
    border-left: 4px solid var(--nintendo-red);
}

.upcoming-item-full:last-child {
    margin-bottom: 0;
}

.upcoming-item-full .upcoming-header {
    margin-bottom: 12px;
}

.upcoming-item-full .upcoming-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.upcoming-item-full .upcoming-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--nintendo-gray-dark);
}

.upcoming-item-full .upcoming-date {
    font-size: 0.9rem;
    color: var(--nintendo-red);
    font-weight: 600;
    margin-bottom: 12px;
}

.upcoming-item-full .upcoming-features {
    margin: 0;
    padding-left: 20px;
}

.upcoming-item-full .upcoming-features li {
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Modal responsive adjustments */
@media (max-width: 480px) {
    .whats-next-modal .nintendo-modal-content {
        max-width: 95vw;
        margin: 2vh auto;
        max-height: 90vh;
    }
    
    .whats-next-modal .nintendo-modal-body {
        max-height: 75vh;
    }
    
    .whats-next-modal-content {
        padding: 16px;
    }
    
    .upcoming-item-full {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .upcoming-item-full .upcoming-title {
        font-size: 1rem;
    }
    
    .upcoming-item-full .upcoming-description {
        font-size: 0.9rem;
    }
}
