/* =============================================
   Falcon Sails — Details Block: Gold & Blue
   ============================================= */

.wp-block-details {
    border: 1px solid #c8a84b;
    border-radius: 10px;
    background: #fdf8ec;
    padding: 0 !important;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
    margin-bottom: 10px;
}

/* 1. Hover Effect */
.wp-block-details:hover {
    border-color: #a8872d;
    box-shadow: 0 4px 16px -4px rgba(168, 135, 45, 0.18);
}

/* 2. Summary (Header) */
.wp-block-details > summary {
    list-style: none;
    padding: 1rem 1.25rem;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    background: #e8c255;
    color: #5a3e0a;
    transition: color 0.2s;
}

.wp-block-details > summary::-webkit-details-marker {
    display: none;
}

/* 3. Chevron Badge */
.wp-block-details > summary::after {
    content: "";
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%235a3e0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1 5,5 9,1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    transition: background-color 0.25s, transform 0.3s, background-image 0.25s;
}

/* 4. Open State */
.wp-block-details[open] {
    border-color: #1a56a0;
    box-shadow: 0 6px 20px -6px rgba(26, 86, 160, 0.15);
}

.wp-block-details[open] > summary {
    color: #1a56a0;
    border-bottom: 1px solid #c8a84b;
}

.wp-block-details[open] > summary::after {
    background-color: #1a56a0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1 5,5 9,1'/%3E%3C/svg%3E");
    transform: rotate(180deg);
}

/* 5. Content Area */
.wp-block-details > *:not(summary) {
    padding: 1.1rem 1.25rem;
    font-size: 14px;
    color: #3b2e0e;
    line-height: 1.7;
}

/* 6. Content Animation */
.wp-block-details[open] > *:not(summary) {
    animation: details-show 0.35s ease-out forwards;
}

@keyframes details-show {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. Nested Blocks */
.wp-block-details .wp-block-details {
    margin: 1rem 0 0;
    border-color: #c8a84b;
}
