/* Collection Page Content Soft Collapse */

.collection-page-content {
    margin-top: 2rem;
}

.collection-content-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.collection-content-visible {
    margin-bottom: 0;
}

.collection-content-hidden {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
}

.collection-content-hidden.is-expanded {
    max-height: 5000px;
    /* Large enough for most content */
    opacity: 1;
    display: block !important;
}

/* Collection content toggle button - uses secondary button styles */
.collection-content-toggle {
    margin-top: 1rem;
    text-decoration: none;
    transition: all 0.8s;
    /* Match theme button transition */
}

/* Ensure secondary button styles are applied */
.collection-content-toggle.button.secondary,
.collection-content-toggle.button.secondary:visited {
    background: var(--color-bg-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.collection-content-toggle.button.secondary:hover {
    background: var(--color-primary-light);
    box-shadow: 0 4px 8px rgba(11, 112, 6, 0.25);
    text-decoration: none;
    color: var(--color-primary);
}

.collection-content-toggle.button.secondary:active {
    background: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: 0 2px 4px rgba(20, 42, 204, 0.3);
    transform: translateY(1px);
}

.collection-content-toggle.button.secondary:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    background: var(--color-primary-light);
}

.collection-content-toggle.button.secondary:focus:not(:focus-visible) {
    outline: none;
}

.collection-content-toggle.button.secondary:disabled {
    color: #5C7AE6;
    background: var(--color-bg-white);
    border-color: #5C7AE6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Active/expanded state */
.collection-content-toggle.button.secondary[aria-expanded="true"] {
    /* Keep secondary style when expanded */
}