/* Land Areas Styles */
.land-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 auto 20px auto;
    padding: 0 40px;
    max-width: 1400px;
}

.land-areas-grid .land-area-card {
    width: 100%;
    min-width: 280px;
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .land-areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 900px) {
    .land-areas-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
    
    .land-areas-grid .land-area-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .land-areas-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .land-areas-grid .land-area-card {
        max-width: 100%;
    }
}

.land-area-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.land-area-card:hover {
    transform: translateY(-5px);
}

.land-area-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.land-area-card h3 {
    margin: 10px;
    font-size: 16px;
    color: var(--accent-color);
}

.area-creatures {
    margin: -2px 10px 10px;
    color: #d5d5d5;
    font-size: 13px;
    line-height: 1.35;
}

.area-stats {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(0,0,0,0.2);
}

.stat {
    font-size: 14px;
    color: #888;
}

.monthly-stats {
    background-color: rgba(0,0,0,0.2);
    padding: 10px;
    margin-top: 5px;
    border-radius: 4px;
}

.monthly-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0;
    font-size: 13px;
}

.monthly-stat .label {
    color: #888;
}

.monthly-stat .value {
    color: #4CAF50;
    font-weight: bold;
}

/* Empty Cards */
.empty-card {
    border: 2px dashed #4CAF50;
    background-color: rgba(74, 175, 80, 0.1) !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.empty-card:hover {
    border-color: #45a049;
    background-color: rgba(74, 175, 80, 0.2) !important;
}

.empty-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-card-content i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.empty-card-content h3 {
    margin: 10px 0;
    color: #4CAF50;
}

.empty-card-content p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.empty-card .area-stats {
    background-color: rgba(0,0,0,0.1);
}

/* Globals Feed Styles */
.globals-feed-full, .area-events-full {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    width: 100%;
    box-sizing: border-box;
}

.globals-feed-full {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
}

.globals-feed-full h2, .area-events-full h2 {
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
    font-size: 24px;
}

.feed-disabled-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 193, 7, 0.65);
    border-radius: 999px;
    color: #ffc107;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.feed-temporary-disabled {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: #f2f2f2;
    text-align: center;
}

.feed-temporary-disabled i {
    color: #ffc107;
    font-size: 28px;
}

.feed-temporary-disabled strong {
    color: #ffc107;
    font-size: 18px;
}

.feed-temporary-disabled span {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.globals-log-content {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px;
    padding-right: 23px;
    max-height: 400px;
    overflow-y: auto;
    box-sizing: border-box;
}

.globals-log-content::-webkit-scrollbar {
    width: 8px;
}

.globals-log-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

.globals-log-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.globals-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.globals-container, .area-globals-container {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    max-height: 800px;
    overflow-y: auto;
}

#globalsLog, #areaGlobalsLog {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.global-entry {
    padding: 5px 8px;
    margin-bottom: 3px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    font-size: 14px;
    word-break: break-word;
}

/* Animation for new global entries */
.global-entry.global-entry-new {
    animation: slideDownFadeIn 0.6s ease-out;
    background: rgba(76, 175, 80, 0.15);
    border-left: 3px solid #4CAF50;
}

@keyframes slideDownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
        margin-bottom: 3px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

.global-entry .timestamp {
    color: #888;
    white-space: nowrap;
}

.global-entry .avatar-name {
    color: #FFD700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-entry .source {
    color: #4CAF50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-entry .value {
    color: #FF4081;
    white-space: nowrap;
}

.global-entry .land-area {
    color: #9C27B0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 768px) {
    .globals-section {
        grid-template-columns: 1fr;
    }

    .globals-container, .area-globals-container {
        max-height: 600px;
    }

    .global-entry {
        font-size: 12px;
        flex-wrap: wrap;
    }
}
