/* ===== LATEST PAGE STYLES ===== */

.latest-page {
    background-color: #100E19; /* Fallback color */
    background: radial-gradient(circle at 75% 100%, #7147BB 0%, 17.5%, rgba(113,71,187,0) 35%), radial-gradient(circle at 47.083333333333336% 85.83333333333333%, #7147BB 0%, 17.5%, rgba(113,71,187,0) 35%), radial-gradient(circle at 81.66666666666667% 21.666666666666668%, #000000 0%, 17.5%, rgba(0,0,0,0) 35%), radial-gradient(circle at 95.41666666666667% 25.833333333333336%, #000000 0%, 27%, rgba(0,0,0,0) 54%), radial-gradient(circle at 65.83333333333333% 11.666666666666666%, #000000 0%, 23%, rgba(0,0,0,0) 46%), radial-gradient(circle at 53.75% 26.666666666666668%, #000000 0%, 22.5%, rgba(0,0,0,0) 45%), radial-gradient(circle at 35.833333333333336% 19.166666666666668%, #000000 0%, 17.5%, rgba(0,0,0,0) 35%), radial-gradient(circle at 7.5% 20.833333333333336%, #000000 0%, 25.5%, rgba(0,0,0,0) 51%), radial-gradient(circle at 15.416666666666668% 91.66666666666666%, #8453D8 0%, 27.5%, rgba(132,83,216,0) 55%), radial-gradient(circle at 92.50813802083333% 97.30143229166667%, #7147BB 0%, 17.5%, rgba(113,71,187,0) 35%), radial-gradient(circle at 48.9013671875% 49.521484375%, #F9F9F9 0%, 100%, rgba(249,249,249,0) 100%);
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Styles are now in base.css */
/* Specific overrides for this page can go here if needed */


/* Main Content */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 2rem;
    align-items: flex-start;
    gap: 60px;
}

.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    height: 500px; /* Match card height */
}

.right-column {
    flex: 1;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* Entry animations for left column content */
.left-column > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}
.main-title { animation-delay: 0.1s; }
.left-column .subtitle { animation-delay: 0.2s; }
.main-buttons { animation-delay: 0.3s; }
.powered-by { animation-delay: 0.4s; }


.main-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.left-column .subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #d1d1d1;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.main-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-green {
    background-color: #2a9d43;
    color: white;
}
.btn-green:hover {
    background-color: #32bf51;
    box-shadow: 0 7px 20px rgba(42, 157, 67, 0.3);
}

.btn-blue {
    background-color: #2c59a8;
    color: white;
}
.btn-blue:hover {
    background-color: #376dce;
    box-shadow: 0 7px 20px rgba(44, 89, 168, 0.3);
}

.powered-by {
    font-size: 14px;
    color: #a0a0a0;
    font-weight: 500;
    margin-top: auto; /* Pushes to bottom */
    transition: color 0.3s ease;
}


/* Right column - Condo Card */
.condo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.condo-image-wrapper {
    position: relative;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden; /* ADDED to clip image to rounded corners */
}

.condo-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.condo-card:hover .condo-image {
    transform: scale(1.05);
}

.play-overlay-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #2173e3;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 115, 227, 0.4);
}

.play-overlay-btn:hover {
    transform: scale(1.1);
}

.play-overlay-btn svg {
    width: 28px;
    height: 28px;
}

.condo-card-content {
    padding: 24px;
}

.condo-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.condo-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.condo-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #d1d1d1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.condo-buttons {
    display: flex;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item.playable {
    color: #36d356;
    font-weight: 700;
}

.info-item.playable svg {
    fill: #36d356;
    transition: fill 0.3s ease;
}

.condo-buttons .btn {
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-play {
    background-color: #2a9d43;
    color: white;
    width: 100%; /* Make the button inside dropdown fill its parent */
}
.btn-play:hover {
    background-color: #32bf51;
    box-shadow: 0 7px 20px rgba(42, 157, 67, 0.3);
}

.btn-key {
    background-color: #dca326;
    color: white;
}
.btn-key:hover {
    background-color: #f7b72c;
    box-shadow: 0 7px 20px rgba(220, 163, 38, 0.3);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: #1c1a27;
    min-width: 100%;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.5);
    z-index: 10;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #440099;
    color: #fff;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}


/* ===== LIGHT MODE STYLES ===== */
body.latest-page:not(.dark-mode) {
    background: radial-gradient(circle at 26.666666666666668% 100%, #8453D8 0%, 27.5%, rgba(132,83,216,0) 55%), radial-gradient(circle at 66.25% 100%, #7147BB 0%, 17.5%, rgba(113,71,187,0) 35%), radial-gradient(circle at 92.50813802083333% 97.30143229166667%, #7147BB 0%, 17.5%, rgba(113,71,187,0) 35%), radial-gradient(circle at 48.9013671875% 49.521484375%, #F9F9F9 0%, 100%, rgba(249,249,249,0) 100%);
    color: #2d2d2d;
}

.latest-page:not(.dark-mode) .logo,
.latest-page:not(.dark-mode) .main-title,
.latest-page:not(.dark-mode) .condo-title {
    color: #1a1a1a;
}

.latest-page:not(.dark-mode) .nav-link {
    color: #333;
}

.latest-page:not(.dark-mode) .nav-link:hover {
    color: #000;
}

.latest-page:not(.dark-mode) .nav-link::after{
    background-color: #8453D8;
}

.latest-page:not(.dark-mode) .left-column .subtitle {
    color: #555;
}

.latest-page:not(.dark-mode) .powered-by {
    color: #666;
}

.latest-page:not(.dark-mode) .condo-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.latest-page:not(.dark-mode) .condo-info {
    color: #555;
}

.latest-page:not(.dark-mode) .info-item.playable {
    color: #28a745;
}

.latest-page:not(.dark-mode) .info-item.playable svg {
    fill: #28a745;
}

.latest-page:not(.dark-mode) .dropdown-content {
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    border: 1px solid #eee;
}

.latest-page:not(.dark-mode) .dropdown-content a {
    color: #333;
}

.latest-page:not(.dark-mode) .dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #8453D8;
}


/* Responsive */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        padding: 40px 2rem;
        gap: 40px;
    }
    .left-column {
        align-items: center;
        text-align: center;
        height: auto;
        padding-top: 0;
    }
    .left-column .subtitle {
        max-width: 100%;
    }
    .powered-by {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    /* Responsive Header is now in base.css */
    .main-title {
        font-size: 48px;
    }
    .left-column .subtitle {
        font-size: 16px;
    }

    .condo-actions {
        justify-content: center;
    }
    .condo-buttons {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .main-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .condo-buttons {
        flex-direction: column;
        width: auto;
        gap: 16px;
    }
    .condo-actions {
        gap: 20px;
    }
}