/* Public widget container */
#cap-public-widget-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

/* Individual capsule item styles */
.cap-public-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cap-public-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Thumbnail styles */
.cap-thumbnail img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

/* Title styles */
.cap-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
    text-align: center;
    transition: color 0.3s;
}

.cap-title a {
    text-decoration: none;
    color: inherit;
}

.cap-title a:hover {
    color: #0073aa;
}

/* Unlock date or countdown styles */
.cap-unlock-date {
    font-size: 14px;
    color: red;
    margin: 10px 0;
    font-weight: bold;
    text-align: center;
}

/* Teaser text styles */
.cap-teaser {
    font-style: italic;
    color: #555;
    margin: 10px 0;
    text-align: center;
}

/* Button styles */
.cap-button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cap-view-button {
    background-color: #0073aa;
    color: #fff;
}

.cap-view-button:hover {
    background-color: #005b8a;
}

.cap-locked-button {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Loading indicator styles */
#cap-loading-indicator {
    text-align: center;
    color: #555;
    font-style: italic;
}

/* Modal styles */
.cap-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cap-modal-content {
    background-color: #fff; /* Keep white background for the modal */
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: auto;
    max-height: 90%;
}

/* Remove border around main content */
.cap-modal-content > div {
    border: none; /* No border around content */
    margin: 20px 0; /* Add spacing around content */
}

/* Close button styles */
.cap-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px; /* Make the button slightly larger */
    font-weight: bold;
    color: #333; /* Ensure the color is visible */
    background: none; /* Remove any background */
    border: none; /* No border around the button */
    cursor: pointer; /* Pointer cursor for interactivity */
    z-index: 1001; /* Ensure it's above other content */
}

.cap-modal-close:hover {
    color: #0073aa; /* Hover effect with a clear color */
}
/* Modal image styles */
.cap-modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Modal title styles */
.cap-modal-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Unlock/Countdown box styles */
.cap-modal-unlock-box {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.cap-modal-unlock-countdown {
    font-size: 16px;
    font-weight: bold;
    color: red;
}

.cap-modal-unlock-date {
    font-size: 16px;
    font-weight: bold;
    color: #0073aa;
}

/* Teaser text styles in modal */
.cap-modal-teaser {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}
