/* Resume Page - Light/Dark Mode Optimization */
/* Uses CSS variables from theme-variables.css for automatic theme switching */

/* Skill Tags - Better contrast in both modes */
.resume-skill-tag {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-secondary);
}

[data-theme="dark"] .resume-skill-tag {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    border-color: var(--color-border-primary);
}

/* Success Stories Accordion - Enhanced dropdown visuals */
details {
    position: relative;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary {
    position: relative;
}

/* Click to expand indicator badge */
details:not([open]) summary::before {
    content: "Click to expand";
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--color-text-tertiary);
    background: var(--color-bg-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

details:not([open]) summary:hover::before {
    opacity: 1;
}

/* Chevron icon with circle background */
details summary::after {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    background-color: #D6D2CB;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.2s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
    background-color: #1E3A5F;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] details summary::after {
    background-color: #1A2840;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4A03C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] details[open] summary::after {
    background-color: #D4A03C;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a202c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Slide-out Panel - 50% width on desktop, full on mobile */
.story-slideout {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background: var(--color-bg-primary);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

/* Full width on mobile */
@media (max-width: 768px) {
    .story-slideout {
        width: 100%;
    }
}

.story-slideout.open {
    right: 0;
}

.story-slideout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.story-slideout-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Section Text - Better readability */
.resume-text-secondary {
    color: var(--color-text-secondary);
}
