/* Claude AI Summarizer - Frontend Styles */

.claude-summary-button {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    direction: rtl;
}

.claude-summary-button.claude-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.claude-summary-button.claude-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.claude-summary-button.claude-position-top-left {
    top: 20px;
    left: 20px;
}

.claude-summary-button.claude-position-top-right {
    top: 20px;
    right: 20px;
}

/* Inline button styles (inside content) */
.claude-summary-button-inline {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    text-align: center;
    width: 100%;
}

.claude-summary-button-inline.claude-position-before-content,
.claude-summary-button-inline.claude-position-after-content {
    margin: 30px 0;
}

.claude-summary-button-inline.claude-position-inside-content-top,
.claude-summary-button-inline.claude-position-inside-content-bottom {
    margin: 15px 0;
}

.claude-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    font-family: inherit;
}

.claude-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.claude-btn:active {
    transform: translateY(0);
}

.claude-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.claude-btn-icon {
    font-size: 18px;
}

.claude-summary-panel {
    position: fixed;
    z-index: 10000;
    width: 400px;
    max-width: 90vw;
    max-height: 60vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    font-family: inherit;
    direction: rtl;
}

.claude-summary-panel.active {
    display: flex;
}

.claude-summary-panel.claude-position-bottom-left {
    bottom: 80px;
    left: 20px;
}

.claude-summary-panel.claude-position-bottom-right {
    bottom: 80px;
    right: 20px;
}

.claude-summary-panel.claude-position-top-left {
    top: 80px;
    left: 20px;
}

.claude-summary-panel.claude-position-top-right {
    top: 80px;
    right: 20px;
}

.claude-panel-header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.claude-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.claude-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.claude-close-btn:hover {
    opacity: 0.8;
}

.claude-panel-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
    color: #333;
}

.claude-panel-footer {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.claude-copy-btn,
.claude-close-btn-footer {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.claude-copy-btn {
    background: #667eea;
    color: white;
}

.claude-copy-btn:hover {
    background: #5568d3;
}

.claude-close-btn-footer {
    background: #f5f5f5;
    color: #333;
}

.claude-close-btn-footer:hover {
    background: #e0e0e0;
}

.claude-summary-content {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    line-height: 1.6;
    margin: 20px 0;
}

.claude-summary-block {
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    margin: 20px 0;
}

/* Loading animation */
.claude-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: claude-spin 0.8s linear infinite;
}

@keyframes claude-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .claude-summary-panel {
        width: calc(100vw - 40px);
        max-width: none;
    }
    
    .claude-summary-button.claude-position-bottom-left,
    .claude-summary-button.claude-position-bottom-right {
        bottom: 10px;
    }
    
    .claude-summary-button.claude-position-bottom-left {
        left: 10px;
    }
    
    .claude-summary-button.claude-position-bottom-right {
        right: 10px;
    }
}
