/* wp-content/plugins/ai-highlights-plugin/css/ai-highlights-frontend.css */

/* --- CONFIGURATION (Based on Red/Black Logo Theme) --- */
:root {
    --ai-bg-color: #ffffff;         /* White Background */
    --ai-text-main: #ff0301;        /* Near Black/Dark Slate Text (for body/list) */
    --ai-text-muted: #64748b;       /* Gray Subtitle */
    --ai-accent-dark: #990000;      /* Dark Maroon/Red for Border and Cursor */
    --ai-accent-light: #CC0000;     /* Bright Red for Title and Icon */
    --ai-border-radius: 12px;
}

/* Wrapper with Solid Red Border (Matching logo frame) */
.ai-widget-wrapper {
    font-family: 'Hind Siliguri', sans-serif;
    /* Use the dark maroon accent for the outer border */
    background: var(--ai-accent-dark); 
    padding: 2px;
    border-radius: var(--ai-border-radius);
    width: 100%;
    /* max-width: 600px; */ 
    box-sizing: border-box;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Inner Widget with Reddish Gradient Background */
.ai-widget-inner {
    /* Subtle white to light red gradient */
    background: linear-gradient(180deg, var(--ai-bg-color) 0%, #fffafa 50%, #fefcfd 100%);
    border-radius: 10px;
    overflow: hidden;
    color: var(--ai-text-main);
}

/* Header Section */
.ai-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background-color: transparent; /* Rely on inner background gradient */
    transition: background-color 0.2s;
}

.ai-header:hover {
    background-color: #ffe6e6; /* Light red hover state */
}

.ai-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SVG Color: Use the bright red accent */
.ai-sparkle-icon {
    width: 36px;
    height: 36px;
    color: var(--ai-accent-light); 
}

.ai-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ai-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ai-accent-light); /* Bright Red Title */
    margin-bottom: 0;
        font-family: 'Inter';
}

.ai-subtitle {
    font-size: 0.8rem;
    color: var(--ai-text-muted);
    font-weight: 500;
    font-family: 'Inter';
    padding-top: 2px;
}

/* Arrow Icon: Use the dark red accent */
.ai-arrow-icon {
    color: var(--ai-accent-dark); 
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.ai-arrow-icon.rotated {
    transform: rotate(180deg);
}

/* Content Section (Accordion) */
.ai-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}


.ai-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Red solid line separator */
    border-top: 1px solid var(--ai-accent-light); 
    padding-top: 18px;
}

/* Specific UL targeting for padding */
.ai-content ul[id^="ai-widget-"] {
    margin: 0 !important;
    padding: 9px 20px;
}

.ai-content li {
    font-size: 1.1rem;
    color: #000000; /* Near Black Text */
    line-height: 1.7;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px dashed #d6d6d6;
    font-weight: 700;
}

/* Red pointer and border color */
.ai-content li::before {
    content: "▸ ";
    color: var(--ai-accent-dark); 
    font-size: 1.1em;
    font-weight: 900;
    margin-right: 5px;
}

/* Fix for last list item */
.ai-content li:last-child {
    border-bottom: 0 !important;
}

/* Typewriter Cursor */
.typing-active::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: var(--ai-accent-dark); /* Dark Red cursor */
    margin-left: 4px;
    vertical-align: sub;
    animation: blink 0.9s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }