/* Badges */
.tc500-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 1.5em 0;
}
.tc500-badge {
    text-align: center;
    padding: 1.5em;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.tc500-badge:hover {
    transform: scale(1.05);
}
.tc500-badge img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}
.tc500-badge h3 {
    margin: 0.5em 0;
    font-size: 1.2em;
}
.tc500-badge p {
    font-size: 0.9em;
    color: #666;
}
.tc500-badge-locked {
    opacity: 0.7;
    filter: grayscale(1);
}
.tc500-empty-badges {
    text-align: center;
    padding: 3em;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Map */
.tc500-map-container {
    margin-bottom: 2em;
}
#tc500-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#tc500-debug {
    margin-top: 1em;
    padding: 1em;
    background-color: #f1f1f1;
    border-left: 4px solid #0073aa;
    font-family: monospace;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tc500-collection-grid,
    .tc500-badges-grid {
        grid-template-columns: 1fr;
    }
    #tc500-map {
        height: 400px !important;
    }
}

/* Add this to your tc500.css file */

/* Base Container Styles */
.tc500-collect-container,
/* .tc500-login-prompt,     REMOVED from this rule */
/* .tc500-collected,        REMOVED from this rule */
/* .tc500-collect-prompt,   REMOVED from this rule */
.tc500-pending-collection, /* Kept as it might be standalone? Review if needed */
.tc500-empty-collection,   /* Kept as likely standalone */
.tc500-empty-badges {      /* Kept as likely standalone */
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    margin-top: 2em !important;
    margin-bottom: 2em !important;
    position: relative;
    overflow: hidden;
}

/* Ensure the inner divs don't add extra spacing */
.tc500-login-prompt,
.tc500-collected,
.tc500-collect-prompt {
    padding: 0;
    margin: 0;
}

/* Remove styles inherited from H3/P tags that are no longer used */
.tc500-collect-container h2,
.tc500-collect-container h3,
.tc500-login-prompt h2,
.tc500-login-prompt h3,
.tc500-collected h2,
.tc500-collected h3,
.tc500-collect-prompt h2,
.tc500-collect-prompt h3,
.tc500-pending-collection h2,
.tc500-pending-collection h3 {
    display: none;
}

/* NEW Text Styling */
.tc500-collect-title {
    font-size: 1.3em;
    font-weight: bold;
    margin: 0 0 0.5em 0;
    padding: 0;
}

.tc500-collect-prompt-text {
    margin: 0 0 0.75em 0;
    padding: 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* NEW Success Text Styling */
.tc500-collect-success-text {
    margin: 0 0 0.75em 0;
    padding: 0;
    font-size: 1.1em; /* Match prompt size */
    font-weight: bold; /* Match prompt weight */
    color: inherit; /* Ensure it uses theme color, override white if needed */
    /* Optional: Add a distinct success color, e.g., color: #28a745; */
}

/* Updated Button Styles */
.tc500-button {
    display: inline-block;
    background-color: #ffffff;
    color: #333333;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.tc500-button:hover {
    text-decoration: none;
    opacity: 0.9;
    background-color: #f5f5f5;
}

/* Code Display */
.tc500-collect-prompt code {
    /* Style updated in the template itself for better context */
    /* background: rgba(0,0,0,0.3); */
    /* color: rgba(255,255,255,0.9); */
    /* padding: 3px 6px; */
    /* border-radius: 3px; */
    /* font-size: 0.9em; */
    /* display: inline-block; */
    /* margin-top: 0.5em; */
}

/* Collection Items */
.tc500-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 1.5em;
}

.tc500-collection-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333333;
}

.tc500-collection-content {
    padding: 15px;
    text-align: left;
}

.tc500-collection-content h3 {
    color: #b9a478;
    margin-top: 0;
    margin-bottom: 10px;
}

.tc500-collection-date {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0 10px;
}