/* ===== Update Date in Sidebar Item ===== */
.credits-section-bottom {
    margin-bottom: 1rem !important;
}

.update-date-small {
    color: #9CA3AF;
    font-size: 0.55rem;
    font-weight: 400;
}

/* ===== Update Log Page (Single Page View) ===== */

.updates-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.8rem;
}

.updates-page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(114, 178, 255, 0.2);
}

.updates-page-header h2 {
    background: linear-gradient(135deg, #72B2FF 0%, #4a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.updates-page-header p {
    color: #9CA3AF;
    font-size: 1.1rem;
}

.updates-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(114, 178, 255, 0.1);
    z-index: 0;
}

.update-entry {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(114, 178, 255, 0.15);
    padding: 1.2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-left: 0;
}

.update-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(114, 178, 255, 0.3);
    background: rgba(18, 44, 103, 0.3);
}

.update-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(114, 178, 255, 0.1);
}

.update-version-title {
    color: #72B2FF;
    font-size: 1.4rem;
    font-weight: 700;
}

.update-timestamp {
    color: #9CA3AF;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(114, 178, 255, 0.1);
}

.update-entry-content {
    padding-left: 0.5rem;
}

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

.update-features-list-page li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.6rem 0;
    color: #E8EAED;
    font-size: 1rem;
    line-height: 1.5;
}

.feature-icon-page {
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.feature-text-page {
    flex: 1;
}

.feature-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.feature-subtext-page {
    color: #9CA3AF;
    font-size: 0.85rem;
    font-weight: 400;
}

.load-more-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.8rem 2rem;
    background: rgba(18, 44, 103, 0.5);
    border: 1px solid rgba(114, 178, 255, 0.3);
    border-radius: 8px;
    color: #72B2FF;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: rgba(18, 44, 103, 0.8);
    border-color: #72B2FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 178, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .updates-timeline::before {
        display: none;
    }

    .update-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .update-timestamp {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Rich Content Styles */
.update-content-image-wrapper {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.update-content-image {
    width: 100%;
    height: auto;
    display: block;
}

.update-image-caption {
    background: rgba(15, 23, 42, 0.8);
    color: #9CA3AF;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
}

.update-content-header {
    color: #72B2FF;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.2rem 0 0.5rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(114, 178, 255, 0.15);
}

.update-content-text {
    color: #E8EAED;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* ===== Updates Section at Bottom of Sidebar ===== */

.updates-section-bottom {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(114, 178, 255, 0.2);
}

/* ===== Responsive Design for Update Details ===== */

@media (max-width: 768px) {
    .update-details {
        padding: 1.5rem;
    }

    .update-details-title {
        font-size: 1.6rem;
    }

    .gem-icon-large {
        font-size: 2rem;
    }

    .update-date-large {
        font-size: 0.8rem;
        padding-left: 0;
    }

    .features-heading {
        font-size: 1.1rem;
    }

    .feature-item {
        padding: 0.8rem 0;
        gap: 1rem;
    }

    .feature-item .feature-icon {
        font-size: 1.5rem;
        min-width: 35px;
    }

    .feature-item .feature-text {
        font-size: 0.95rem;
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 25%, #0f1623 50%, #151b2e 75%, #0a0e1a 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradientShift 15s ease infinite;
    color: #E8EAED;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Canvas for particle effect (behind everything) */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(114, 178, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(114, 178, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Header Styles ===== */

header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(114, 178, 255, 0.2);
    padding: 0.6rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1900px;
    margin: 0 auto;
}

header h1 {
    background: linear-gradient(135deg, #72B2FF 0%, #4a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

header h1:hover {
    opacity: 0.8;
}

/* Game icon (top right) */
.game-icon-container {
    width: 45px;
    height: 45px;
}

.game-icon-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('../assets/GameIcon.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 2px solid rgba(114, 178, 255, 0.4);
    box-shadow: 0 0 15px rgba(114, 178, 255, 0.3);
}

/* ===== Main Container ===== */

.container {
    display: flex;
    max-width: 1900px;
    margin: 0 auto;
    height: calc(100vh - 70px - 40px);
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ===== Sidebar Styles ===== */

#sidebar {
    width: 220px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(114, 178, 255, 0.2);
    overflow-y: auto;
    padding: 0.8rem;
    padding-bottom: 3.5rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 100%;
}

/* World section (collapsible) */
.world-section {
    background: rgba(18, 44, 103, 0.3);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(114, 178, 255, 0.15);
    transition: all 0.2s;
}

.world-section:hover {
    border-color: rgba(114, 178, 255, 0.4);
    box-shadow: 0 0 10px rgba(114, 178, 255, 0.2);
}

.world-header {
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #72B2FF;
    background: rgba(18, 44, 103, 0.4);
    transition: all 0.2s;
    user-select: none;
}

.world-header:hover {
    background: rgba(18, 44, 103, 0.6);
}

.world-header::before {
    content: '▼';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s;
    font-size: 0.7rem;
}

.world-header.collapsed::before {
    transform: rotate(-90deg);
}

/* Hide arrow for specific headers (like Updates) */
.world-header.no-arrow::before {
    display: none;
}

/* Egg list */
.egg-list {
    display: flex;
    flex-direction: column;
    background: rgba(7, 12, 29, 0.4);
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.egg-list.collapsed {
    max-height: 0;
}

.egg-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #C5C7CA;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    font-size: 0.85rem;
}

.egg-item:hover {
    background: rgba(18, 44, 103, 0.4);
    border-left-color: #72B2FF;
    color: #72B2FF;
    padding-left: 1.2rem;
}

.egg-item.active {
    background: rgba(18, 44, 103, 0.5);
    border-left-color: #72B2FF;
    color: #72B2FF;
    font-weight: 600;
}

/* ===== Update Section in Sidebar (Bottom) ===== */

.update-section-sidebar {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(114, 178, 255, 0.2);
}

.update-header-sidebar {
    padding: 0.7rem 0.8rem;
    cursor: pointer;
    background: rgba(18, 44, 103, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(114, 178, 255, 0.2);
}

.update-header-sidebar:hover {
    background: rgba(18, 44, 103, 0.6);
    border-color: rgba(114, 178, 255, 0.4);
}

.update-header-sidebar.active {
    border-color: #72B2FF;
    box-shadow: 0 0 10px rgba(114, 178, 255, 0.2);
}

.update-header-sidebar .gem-icon {
    font-size: 1.1rem;
    animation: gemPulse 2s ease-in-out infinite;
}

@keyframes gemPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.update-info-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.update-version-sidebar {
    color: #72B2FF;
    font-weight: 600;
    font-size: 0.85rem;
}

.update-date-sidebar {
    color: #9CA3AF;
    font-size: 0.7rem;
}

.dropdown-arrow-sidebar {
    color: #72B2FF;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.update-header-sidebar.active .dropdown-arrow-sidebar {
    transform: rotate(180deg);
}

.update-dropdown-sidebar {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0.5rem;
}

.update-dropdown-sidebar.collapsed {
    max-height: 0;
}

.update-options-sidebar {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(114, 178, 255, 0.15);
}

.update-option-sidebar {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(114, 178, 255, 0.1);
    transition: all 0.2s ease;
}

.update-option-sidebar:last-child {
    border-bottom: none;
}

.update-option-sidebar:hover {
    background: rgba(18, 44, 103, 0.5);
    padding-left: 1rem;
}

.update-option-sidebar .update-version {
    color: #72B2FF;
    font-weight: 600;
    font-size: 0.8rem;
}

.update-option-sidebar .update-date {
    color: #9CA3AF;
    font-size: 0.7rem;
}

.update-content-sidebar {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 6px;
    padding: 0.8rem;
    border: 1px solid rgba(114, 178, 255, 0.15);
}

.update-list-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-list-sidebar li {
    padding: 0.5rem 0;
    color: #E8EAED;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(114, 178, 255, 0.1);
    transition: all 0.2s ease;
}

.update-list-sidebar li:last-child {
    border-bottom: none;
}

.update-list-sidebar li:hover {
    color: #72B2FF;
    padding-left: 0.3rem;
}

.update-list-sidebar .feature-icon {
    font-size: 1rem;
    min-width: 20px;
}

.update-list-sidebar .feature-text {
    flex: 1;
}

/* ===== Content Area Styles ===== */

#content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: transparent;
}

.welcome {
    text-align: center;
    padding: 3rem 2rem;
}

.welcome h2 {
    background: linear-gradient(135deg, #72B2FF 0%, #4a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.welcome p {
    color: #9CA3AF;
    font-size: 1rem;
}

/* Pet details display */
.pet-details {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(114, 178, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.pet-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(114, 178, 255, 0.2);
    padding-bottom: 1rem;
}

.pet-title {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #72B2FF 0%, #4a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.pet-meta {
    color: #9CA3AF;
    font-size: 0.85rem;
}

/* Pet stats table */
.pets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.pets-table th {
    padding: 0.7rem 0.5rem;
    text-align: left;
    background: rgba(18, 44, 103, 0.5);
    color: #72B2FF;
    font-weight: 600;
    border-bottom: 2px solid rgba(114, 178, 255, 0.3);
    font-size: 0.8rem;
    white-space: nowrap;
}

.pets-table td {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid rgba(114, 178, 255, 0.1);
    color: #E8EAED;
}

.pets-table tr:hover {
    background: rgba(18, 44, 103, 0.3);
}

.rarity-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-family: 'Courier New', monospace;
    color: #72B2FF;
    font-weight: 600;
}

/* ===== Credits Page Styles ===== */

.credits-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.credits-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(114, 178, 255, 0.2);
}

.credits-header h2 {
    background: linear-gradient(135deg, #72B2FF 0%, #4a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.credits-header p {
    color: #9CA3AF;
    font-size: 1.1rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.credit-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(114, 178, 255, 0.15);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.credit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(114, 178, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.credit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(114, 178, 255, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    background: rgba(18, 44, 103, 0.4);
}

.credit-card:hover::before {
    opacity: 1;
}

.credit-icon {
    font-size: 2.5rem;
    background: rgba(15, 23, 42, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(114, 178, 255, 0.1);
    transition: transform 0.3s ease;
}

.credit-card:hover .credit-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(114, 178, 255, 0.3);
    background: rgba(114, 178, 255, 0.1);
}

.credit-info {
    flex: 1;
    z-index: 1;
}

.credit-name {
    color: #E8EAED;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.credit-card:hover .credit-name {
    color: #72B2FF;
}

.credit-role {
    color: #9CA3AF;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Specific Card Styles */
.owner-card {
    border-left: 3px solid #FFD700;
}

.studio-card {
    border-left: 3px solid #72B2FF;
}

.dev-card {
    border-left: 3px solid #10B981;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .credits-grid {
        grid-template-columns: 1fr;
    }

    .credit-card {
        padding: 1.2rem;
    }
}

/* ===== Scrollbar Styling ===== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(7, 12, 29, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(114, 178, 255, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(114, 178, 255, 0.6);
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: calc(100vh - 70px - 35px);
        padding-bottom: 35px;
    }

    #sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(114, 178, 255, 0.2);
    }

    .pets-table {
        font-size: 0.75rem;
    }

    .update-section-sidebar {
        padding-top: 0.6rem;
    }

    .update-header-sidebar {
        padding: 0.6rem 0.7rem;
    }
}

/* ===== Additional Overrides ===== */

/* Remove arrow from Updates button */
.updates-section-bottom .world-header::before {
    display: none !important;
}