/* Investor Quotes Widget - Dark Theme */
.investor-quotes-widget {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a3a3a;
}

.investor-quotes-widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3360a8 0%, #4a7bc8 100%);
}

.quotes-container {
    height: 100%;
    position: relative;
    text-align: center;
}

.quote-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.quote-content.active {
    opacity: 1;
}

.quote-text {
    font-size: 16px;
    line-height: 1.5;
    color: #e5e5e5;
    margin: 0 0 20px 0;
    font-weight: 400;
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.quote-text::before {
    content: '"';
    font-size: 48px;
    color: #3360a8;
    position: absolute;
    top: -10px;
    left: -10px;
    line-height: 1;
    font-family: Georgia, serif;
}

.quote-author {
    font-size: 14px;
    color: #3360a8;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 2px solid #3a3a3a;
    padding-top: 16px;
    width: 100%;
}

.quote-author::before {
    content: "— ";
    color: #666;
    font-weight: 400;
}

/* Navigation dots */
.quote-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.quote-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a4a4a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-dot.active {
    background: #3360a8;
    transform: scale(1.2);
}

.quote-dot:hover {
    background: #4a7bc8;
}

/* Loading state */
.quotes-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #3a3a3a;
    border-top: 2px solid #3360a8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Error state */
.quotes-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

/* Auto-rotation animation */
.quote-progress {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3a3a3a;
    border-radius: 1px;
    overflow: hidden;
    z-index: 10;
}

.quote-progress-bar {
    height: 100%;
    background: #3360a8;
    width: 0%;
    border-radius: 1px;
    transition: width 0.1s linear;
}

/* Responsive adjustments for smaller containers */
@media (max-width: 350px) {
    .investor-quotes-widget {
        width: 280px;
        height: 280px;
        padding: 20px;
    }

    .quote-text {
        font-size: 15px;
        -webkit-line-clamp: 5;
        max-height: 130px;
    }

    .quote-author {
        font-size: 13px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .investor-quotes-widget {
        border: 2px solid #3360a8;
    }

    .quote-text {
        color: #ffffff;
    }

    .quote-author {
        color: #ffffff;
    }

    .quote-dot {
        background: #ffffff;
    }

    .quote-dot.active {
        background: #3360a8;
        border: 2px solid #ffffff;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .quote-content {
        transition: none;
    }

    .quote-dot {
        transition: none;
    }

    .loading-spinner {
        animation: none;
        border: 2px solid #3360a8;
    }
}

/* Focus states for accessibility */
.quote-dot:focus {
    outline: 2px solid #3360a8;
    outline-offset: 2px;
}

.investor-quotes-widget:focus-within .quote-dots {
    opacity: 1;
}

/* Hover effects */
.investor-quotes-widget:hover .quote-progress {
    opacity: 0.7;
}

.investor-quotes-widget:hover .quote-dots {
    opacity: 1;
}
