/* Component styles - CUSTOMIZABLE */
/* These styles can be modified to change the appearance of components */

/* Typography sizing - can be customized */
h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

h2 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #21262d;
}

h3 {
    font-size: 1.125rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Links styling */
a {
    color: #79c0ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a5d6ff;
    text-decoration: underline;
}

/* Code styling */
code {
    background: rgba(45, 55, 72, 0.8);
    color: #ffc649;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875em;
    font-weight: 400;
}

pre {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

pre code {
    background: none;
    padding: 0;
    color: #e6edf3;
}

/* Alternative pre styling with gradient (uncomment to use) */
/*
pre {
    background: linear-gradient(145deg, #2d3748 0%, #4a5568 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
*/

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: rgba(45, 55, 72, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(49, 130, 206, 0.2);
    color: #90cdf4;
    font-weight: 600;
}

/* Form elements */
input, textarea, select {
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e2e8f0;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

/* Custom Dropdown/Select Component */
.select-wrapper {
    position: relative;
    margin: 1rem 0;
}

.select-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f0f6fc;
    font-weight: 500;
    font-size: 0.9rem;
}

.select-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23e2e8f0' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 0.65rem auto;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-wrapper select:disabled {
    cursor: not-allowed;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%236b7280' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
}

.select-small {
    width: 150px;
    min-width: 150px;
}

.select-medium {
    width: 250px;
    min-width: 250px;
}

.select-large {
    width: 400px;
    min-width: 400px;
}

.select-full {
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
}

/* Enhanced Text Input Components */
.input-wrapper {
    margin: 1rem 0;
}

.input-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f0f6fc;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-small {
    width: 150px;
    min-width: 150px;
}

.input-medium {
    width: 250px;
    min-width: 250px;
}

.input-large {
    width: 400px;
    min-width: 400px;
}

.input-full {
    width: 100%;
}

/* Enhanced Textarea Component */
.textarea-wrapper {
    margin: 1rem 0;
}

.textarea-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f0f6fc;
    font-weight: 500;
    font-size: 0.9rem;
}

.textarea-small {
    height: 80px;
    resize: vertical;
}

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

.textarea-large {
    height: 200px;
    resize: vertical;
}

.textarea-auto {
    min-height: 80px;
    resize: vertical;
}

/* Disabled input styles */
input:disabled, textarea:disabled, select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(45, 55, 72, 0.4);
}

/* Buttons */
button {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover {
    background: linear-gradient(135deg, #2b77cb 0%, #2a4f7c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Specialized Button Components */
/* Commit/Save Button */
.btn-commit {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-commit:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Cancel Button */
.btn-cancel {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-cancel:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Abort/Delete Button */
.btn-abort {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-abort:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Primary Application Button */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Secondary/Outline Button */
.btn-secondary {
    background: transparent;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    color: #3b82f6;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.1);
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-1px);
}

/* Disabled State for All Buttons */
button:disabled,
.btn-commit:disabled,
.btn-cancel:disabled,
.btn-abort:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary:disabled {
    border-color: #6b7280;
    color: #6b7280;
    background: transparent;
}

/* Quiz Card Specific Styles */
.quiz-wrong-answer {
    position: relative;
    opacity: 0.7;
}

.quiz-wrong-answer::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: var(--error-color, #f85149);
    transform: rotate(-2deg);
}

.quiz-wrong-answer input[type="radio"],
.quiz-wrong-answer input[type="checkbox"] {
    accent-color: var(--error-color, #f85149);
}

.quiz-wrong-answer label {
    color: var(--error-color, #f85149);
}

/* Quiz Card Feedback Messages */
quiz-card .message {
    margin: 0;
}

quiz-card .message-success {
    animation: slideInFade 0.4s ease-out;
}

quiz-card .message-error {
    animation: slideInFade 0.4s ease-out;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Checkboxes */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #4b5563;
    border-radius: 3px;
    background: rgba(45, 55, 72, 0.8);
    margin-right: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-wrapper input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-wrapper label {
    color: #e6edf3;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper.disabled label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Custom Radio Buttons */
.radio-wrapper {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    cursor: pointer;
}

.radio-wrapper input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #4b5563;
    border-radius: 50%;
    background: rgba(45, 55, 72, 0.8);
    margin-right: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-wrapper input[type="radio"]:checked {
    border-color: #3b82f6;
}

.radio-wrapper input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
}

.radio-wrapper input[type="radio"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.radio-wrapper label {
    color: #e6edf3;
    cursor: pointer;
    user-select: none;
}

.radio-wrapper.disabled label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success/Error Message Components */
.message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #7ee787;
}

.message-success::before {
    content: '✓';
    font-weight: bold;
    color: #22c55e;
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ffa198;
}

.message-error::before {
    content: '✗';
    font-weight: bold;
    color: #ef4444;
}

.message-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #ffc649;
}

.message-warning::before {
    content: '⚠';
    font-weight: bold;
    color: #f59e0b;
}

.message-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #79c0ff;
}

.message-info::before {
    content: 'ℹ';
    font-weight: bold;
    color: #3b82f6;
}

/* Compact message variants */
.message.compact {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

/* Progress Bar Component */
.progress-bar {
    background: rgba(45, 55, 72, 0.8);
    border-radius: 8px;
    height: 20px;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f0f6fc;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Progress bar variants */
.progress-bar.success .progress-fill {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.progress-bar.warning .progress-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.progress-bar.danger .progress-fill {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Thin progress bar */
.progress-bar.thin {
    height: 8px;
}

.progress-bar.thin .progress-text {
    display: none;
}

/* Reading plan specific progress */
.reading-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.reading-progress .progress-bar {
    flex: 1;
    margin: 0;
}

.reading-progress .progress-label {
    color: #8b949e;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Toggle Switch Component */
.toggle-wrapper {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    margin-right: 0.75rem;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(75, 85, 99, 0.8);
    border: 2px solid #4b5563;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: #3b82f6;
    border-color: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-wrapper label {
    color: #e6edf3;
    cursor: pointer;
    user-select: none;
}

.toggle-wrapper.disabled label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badge/Tag Components */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin: 0.125rem;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-secondary {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Large badge variant */
.badge-large {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Pill-shaped badges */
.badge-pill {
    border-radius: 999px;
}

/* Biblical study specific badges */
.badge-difficulty-beginner {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-difficulty-intermediate {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-difficulty-advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-topic {
    background: rgba(147, 51, 234, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Autocomplete/Typeahead Component */
.autocomplete-wrapper {
    position: relative;
    margin: 1rem 0;
}

.autocomplete-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f0f6fc;
    font-weight: 500;
    font-size: 0.9rem;
}

.autocomplete-input {
    width: 100%;
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e2e8f0;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.autocomplete-input:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.autocomplete-option:last-child {
    border-bottom: none;
}

.autocomplete-option:hover,
.autocomplete-option.highlighted {
    background: rgba(59, 130, 246, 0.2);
    color: #79c0ff;
}

.autocomplete-option.highlighted {
    background: rgba(59, 130, 246, 0.3);
}

.autocomplete-match {
    font-weight: bold;
    color: #ffc649;
}

.autocomplete-no-results {
    padding: 0.75rem;
    text-align: center;
    color: #8b949e;
    font-style: italic;
}

/* List styling enhancements */
li strong {
    color: #ffc649;
}

/* Documentation-specific components */
.intro-section {
    background: rgba(34, 139, 34, 0.1);
    border-left: 4px solid #22b14c;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.intro-section p {
    margin: 0;
    font-size: 1.1rem;
}

/* Callout boxes */
.callout {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    border-left: 4px solid;
}

.callout-info {
    background: rgba(0, 149, 255, 0.1);
    border-color: #0969da;
    color: #79c0ff;
}

.callout-success {
    background: rgba(34, 139, 34, 0.1);
    border-color: #22b14c;
    color: #7ee787;
}

.callout-warning {
    background: rgba(255, 140, 0, 0.1);
    border-color: #fb8500;
    color: #ffc649;
}

.callout-error {
    background: rgba(255, 69, 58, 0.1);
    border-color: #ff6347;
    color: #ffa198;
}

/* Code tabs for examples */
.code-tabs {
    margin: 1rem 0;
}

.tab-content {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(45, 55, 72, 0.3);
    border-radius: 6px;
    border-left: 3px solid #0969da;
}

.tab-content strong {
    color: #79c0ff;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.tab-content pre {
    margin: 0.5rem 0 0 0;
    background: #0d1117;
}

/* Scripture Quote Component */
.scripture-quote {
    background: rgba(79, 172, 254, 0.08);
    border-left: 4px solid #4facfe;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scripture-quote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: #4facfe;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.scripture-quote blockquote {
    margin: 0;
    padding: 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e6edf3;
    font-family: Georgia, 'Times New Roman', serif;
}

.scripture-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: #4facfe;
    font-size: 0.9rem;
    text-align: right;
    font-family: 'Segoe UI', sans-serif;
}

.scripture-quote cite::before {
    content: '— ';
}

/* Alternative compact scripture quote */
.scripture-quote.compact {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    background: rgba(79, 172, 254, 0.05);
}

.scripture-quote.compact::before {
    font-size: 2.5rem;
    top: -0.2rem;
    left: 0.8rem;
}

.scripture-quote.compact blockquote {
    font-size: 1rem;
}

.scripture-quote.compact cite {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Video Embed Component */
.video-embed {
    background: rgba(45, 55, 72, 0.4);
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-embed iframe {
    width: 100%;
    height: 315px;
    border: none;
    border-radius: 6px;
    background: #000;
}

.video-embed .video-caption {
    margin: 0.75rem 0 0 0;
    font-size: 0.9rem;
    color: #8b949e;
    font-style: italic;
    text-align: center;
}

/* Responsive video embed */
.video-embed.responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.video-embed.responsive iframe {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
}

.video-embed.responsive .video-caption {
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    right: 1rem;
    margin: 0;
}