/* StoryScore Public Styles - Votary Films Brand */

/* Import Inter font for professional typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.storyscore-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.storyscore-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
    pointer-events: none;
}

.storyscore-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.1);
}

.storyscore-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out;
}

.storyscore-header h2 {
    color: #1a1a1a;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.storyscore-header p {
    color: #666666;
    font-size: 18px;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Enhanced Progress Bar */
.storyscore-progress {
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(26, 26, 26, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a, #333333, #1a1a1a);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: block;
    text-align: center;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Question Slides with Smooth Transitions */
.storyscore-questions {
    min-height: 450px;
    position: relative;
    overflow: visible;
    border-radius: 12px;
}

.question-slide {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.question-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.question-slide.prev {
    transform: translateX(-100px);
}

.question-content {
    padding: 30px 0;
    animation: fadeInUp 0.6s ease-out;
}

.question-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.4;
    text-align: center;
}

.question-title .required {
    color: #e53e3e;
    margin-left: 8px;
    font-size: 20px;
}

/* Modern Question Input Styles */
.question-input {
    margin-bottom: 40px;
}

/* Enhanced Options Styling */
.storyscore-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.storyscore-option {
    margin: 0;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.5s ease-out forwards;
}

.storyscore-option:nth-child(1) { animation-delay: 0.1s; }
.storyscore-option:nth-child(2) { animation-delay: 0.2s; }
.storyscore-option:nth-child(3) { animation-delay: 0.3s; }
.storyscore-option:nth-child(4) { animation-delay: 0.4s; }
.storyscore-option:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Option Labels */
.storyscore-option-label,
.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    color: #2d3748;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.storyscore-option-label::before,
.radio-label::before,
.checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.storyscore-option-label:hover,
.radio-label:hover,
.checkbox-label:hover {
    border-color: #c79666;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 162, 131, 0.15);
}

.storyscore-option-label:hover::before,
.radio-label:hover::before,
.checkbox-label:hover::before {
    left: 100%;
}

/* Hide actual radio/checkbox inputs but keep them accessible for validation */
.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    position: absolute;
    left: -9999px;
    cursor: pointer;
}

/* Custom checkmark and radiomark */
.checkmark,
.radiomark {
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
    margin-right: 16px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
}

.radiomark {
    border-radius: 50%;
}

/* Show checkmark/radiomark when checked */
.checkbox-label input:checked ~ .checkmark {
    background-color: #c79666;
    border-color: #c79666;
}

.radio-label input:checked ~ .radiomark {
    background-color: #c79666;
    border-color: #c79666;
}

/* Create checkmark/radiomark indicator */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.radiomark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-label input:checked ~ .radiomark:after {
    display: block;
}

.radio-label .radiomark:after {
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Label styling when checked */
.radio-label input:checked ~ .option-text,
.checkbox-label input:checked ~ .option-text {
    color: white;
    font-weight: 600;
}

.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
    border-color: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: white;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26, 26, 26, 0.3);
}

/* Scale Input Styling */
.scale-input {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.scale-option {
    flex: 1;
    min-width: 55px;
    text-align: center;
}

.scale-option input {
    display: none;
}

.scale-number {
    display: block;
    width: 55px;
    height: 55px;
    line-height: 55px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #333333;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

.scale-option:hover .scale-number {
    border-color: #1a1a1a;
    background: #f8f8f8;
    transform: scale(1.1);
}

.scale-option input:checked + .scale-number {
    border-color: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(26, 26, 26, 0.4);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666666;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* Text Input Styling */
.text-input,
.textarea-input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
    background: #fafafa;
}

.textarea-input {
    resize: vertical;
    min-height: 120px;
}

/* Modern Navigation Buttons */
.storyscore-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.storyscore-navigation #prev-question {
    margin-right: auto;
}

.storyscore-navigation #next-question,
.storyscore-navigation #submit-form {
    margin-left: auto;
}

.btn {
    padding: 18px 36px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 26, 26, 0.4);
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    color: #1a1a1a;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.btn-success {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 26, 26, 0.4);
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced Results Section */
.storyscore-results {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.storyscore-results h3 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #c79666, #b8956f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.score-category {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: transform 0.3s ease;
}

.score-category:hover {
    transform: translateY(-4px);
}

.score-category h4 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.score-item:last-child {
    border-bottom: none;
}

.score-item.total-score {
    background: linear-gradient(135deg, #c79666 0%, #b8956f 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(204, 162, 131, 0.3);
    border: none;
}

.score-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-item.total-score .score-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.score-value {
    font-size: 24px;
    font-weight: 700;
    color: #c79666;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-item.total-score .score-value {
    color: white;
    font-size: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .storyscore-container {
        margin: 10px;
        padding: 15px;
    }
    
    .storyscore-form {
        padding: 20px;
    }
    
    .storyscore-header h2 {
        font-size: 24px;
    }
    
    .question-title {
        font-size: 18px;
    }
    
    .storyscore-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 15px;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .storyscore-container {
        margin: 5px;
        padding: 10px;
    }
    
    .storyscore-form {
        padding: 15px;
    }
    
    @media (max-width: 480px) {
        .storyscore-question-number {
            width: 25px;
            height: 25px;
            line-height: 25px;
            font-size: 12px;
            margin-right: 10px;
        }
        
        .storyscore-option-input {
            transform: scale(1);
            margin-right: 10px;
        }
        
        .storyscore-options {
            gap: 6px;
        }
        
        .storyscore-option {
            margin-bottom: 4px;
        }
        
        .storyscore-option-label {
            padding: 6px 8px;
            font-size: 12px;
            line-height: 1.0;
        }
        
        .storyscore-questions {
            min-height: 400px;
            overflow: visible;
        }
        
        .stats-grid {
            grid-template-columns: 1fr;
        }
    }
}

/* Loading States */
.storyscore-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.storyscore-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top: 2px solid #c79666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.storyscore-error {
    background: #ffeaea;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* Success States */
.storyscore-success {
    background: #eafaea;
    border: 1px solid #00a32a;
    color: #00a32a;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* Legacy Question Styles - keeping for backward compatibility */
.storyscore-question {
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-left: 4px solid #1a1a1a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.storyscore-question-number {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-weight: 600;
    margin-right: 18px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 3px 8px rgba(26, 26, 26, 0.3);
}

.storyscore-question-text {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.storyscore-question-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.storyscore-category-marketing {
    background: linear-gradient(135deg, #1a1a1a, #333333);
}

.storyscore-category-operations {
    background: linear-gradient(135deg, #1a1a1a, #333333);
}

.storyscore-category-culture {
    background: linear-gradient(135deg, #1a1a1a, #333333);
}

.storyscore-category-strategy {
    background: linear-gradient(135deg, #1a1a1a, #333333);
}

/* Options Styles */
.storyscore-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.storyscore-option {
    margin-bottom: 8px;
}

.storyscore-option:last-child {
    margin-bottom: 0;
}

.storyscore-option-label {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.storyscore-option-label:hover {
    border-color: #c79666;
    background: rgba(248, 248, 248, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 162, 131, 0.2);
}

.storyscore-option-input {
    margin-right: 18px;
    transform: scale(1.3);
}

.storyscore-option-input:checked + .storyscore-option-label {
    border-color: #c79666;
    background: linear-gradient(135deg, #c79666, #b8956f);
    color: white;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 162, 131, 0.4);
}

.storyscore-option-text {
    flex: 1;
}

.storyscore-option-score {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    margin-left: 12px;
}

/* Form Navigation */
.storyscore-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.storyscore-nav-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.storyscore-btn-primary {
    background: #c79666;
    color: #fff;
}

.storyscore-btn-primary:hover {
    background: #b8956f;
    color: #fff;
}

.storyscore-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.storyscore-btn-secondary:hover {
    background: #e0e0e0;
}

.storyscore-btn-disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}

/* Results Display */
.storyscore-results {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.storyscore-results-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.storyscore-total-score {
    font-size: 48px;
    font-weight: 700;
    margin: 30px 0;
    padding: 30px;
    border-radius: 8px;
    color: #fff;
}

.storyscore-score-excellent {
    background: linear-gradient(135deg, #00a32a, #4caf50);
}

.storyscore-score-good {
    background: linear-gradient(135deg, #c79666, #b8956f);
}

.storyscore-score-average {
    background: linear-gradient(135deg, #f56e28, #ff9800);
}

.storyscore-score-poor {
    background: linear-gradient(135deg, #d63638, #f44336);
}

.storyscore-score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.storyscore-category-score {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-top: 4px solid #c79666;
}

.storyscore-category-score h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.storyscore-category-score .score {
    font-size: 24px;
    font-weight: 700;
    color: #c79666;
}

/* Statistics Display */
.storyscore-stats-display {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.storyscore-stats-display h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-top: 4px solid #2596be;
}

.stat-item.total-stat {
    border-top-color: #00a32a;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.stats-period {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

/* Results Grid */
.storyscore-results-display {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.storyscore-results-display h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.result-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #c79666;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-date {
    color: #666;
    font-size: 14px;
}

.result-total {
    font-size: 24px;
    font-weight: 700;
    color: #c79666;
}

.result-breakdown {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.score-item:last-child {
    margin-bottom: 0;
}

.score-label {
    color: #666;
    font-size: 14px;
}

.score-value {
    font-weight: 600;
    color: #333;
}

/* Loading States */
.storyscore-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.storyscore-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c79666;
    border-radius: 50%;
    animation: storyscore-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes storyscore-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.storyscore-error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.storyscore-success {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .storyscore-form-container,
    .storyscore-results,
    .storyscore-stats-display,
    .storyscore-results-display {
        margin: 0 10px;
        padding: 15px;
    }
    
    .storyscore-form-title {
        font-size: 24px;
    }
    
    .storyscore-question {
        padding: 20px 15px;
    }
    
    .storyscore-question-text {
        font-size: 16px;
    }
    
    .storyscore-option-label {
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.2;
    }
    
    .storyscore-total-score {
        font-size: 36px;
        padding: 20px;
    }
    
    .storyscore-score-breakdown {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .storyscore-form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .storyscore-nav-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .storyscore-question-number {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .storyscore-option-input {
        transform: scale(1);
        margin-right: 10px;
    }
    
    .storyscore-options {
        gap: 6px;
    }
    
    .storyscore-option {
        margin-bottom: 4px;
    }
    
    .storyscore-option-label {
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.0;
    }
    
    .storyscore-questions {
        min-height: 400px;
        overflow: visible;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}