/* Campaign Details page styles - extends theme.css */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--foreground);
    text-decoration: none;
    transition: all 0.2s ease;
    height: fit-content;
}

.back-btn:hover {
    background-color: var(--accent);
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Campaign metadata */
.campaign-meta {
    margin-bottom: var(--spacing-2xl);
}

.campaign-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.campaign-description {
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* Section divider */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--spacing-2xl) 0;
}

/* Metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.metric-card {
    padding: var(--spacing-lg);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-sm);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
}

.metric-subtext {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: var(--spacing-xs);
}

/* Section title */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--foreground);
}

/* Response Summary Section */
.response-summary-section {
    margin-bottom: var(--spacing-2xl);
}

.question-widget {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.question-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-sm);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.5;
}

.options-row {
    display: flex;
    gap: var(--spacing-lg);
}

.option-card {
    flex: 1;
}

@media (max-width: 768px) {
    .options-row {
        flex-direction: column;
    }
}

/* Analytics section */
.analytics-section {
    margin-bottom: var(--spacing-2xl);
}

.chart-container {
    padding: var(--spacing-lg);
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Responses section */
.responses-section {
    margin-bottom: var(--spacing-2xl);
}

.response-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.response-card:hover {
    box-shadow: var(--shadow-md);
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.response-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.response-number {
    font-weight: 600;
    color: var(--foreground);
}

.response-date {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.response-content {
    display: none;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.response-card.expanded .response-content {
    display: block;
}

.response-item {
    margin-bottom: var(--spacing-md);
}

.response-question {
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--foreground);
}

.response-answer {
    color: var(--muted-foreground);
}

.toggle-icon {
    transition: transform 0.2s ease;
}

.response-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
}
