/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

/* Fire Phrase Color Scheme Variables - Color Agnostic Names */
:root {
    --primary-color: #3b82f6;
    --primary-color-hover: #2563eb;
    --primary-color-light: #dbeafe;
    --secondary-color: #e0e7ff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --border-color: #e2e8f0;
    --surface: #ffffff;
    --success-color: #10b981;
    --success-color-hover: #059669;
    --error-color: #ef4444;
    --error-color-hover: #dc2626;
    --warning-color: #f59e0b;
    --info-bg: #eff6ff;
    --info-border: #3b82f6;
    --info-text: #1d4ed8;
    --accent-color: #6366f1;
    --accent-color-hover: #4f46e5;
    
    /* Header-specific colors */
    --header-text: #ffffff;
    --header-text-secondary: rgba(255, 255, 255, 0.9);
    --header-text-muted: rgba(255, 255, 255, 0.7);
    --header-overlay: rgba(255, 255, 255, 0.1);
    --header-overlay-hover: rgba(255, 255, 255, 0.9);
}

/* Main layout */
.app-container {
    min-height: 100vh;
    background-color: var(--bg-primary);
}

/* Header styles */
.app-header {
    background-color: var(--primary-color);
    color: var(--header-text);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    max-width: 56rem;
    margin: 0 auto;
}

/* Breadcrumb navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--header-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--header-text);
}

.breadcrumb-separator {
    color: var(--header-text-muted);
}

.breadcrumb-current {
    white-space: nowrap;
    color: var(--header-text);
}

/* Controls section */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .controls-section {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* API Key input specific styling */
.api-key-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .api-key-controls {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.api-key-label {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--header-text);
}

.api-key-input {
    flex-grow: 1;
    padding: 0.5rem;
    border-radius: 0.25rem;
    color: var(--text-primary);
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    min-width: 0;
}

/* Main content */
.main-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1rem;
}

/* Info panel styles */
.info-panel {
    margin-bottom: 1rem;
    background-color: var(--info-bg);
    border-left: 4px solid var(--info-border);
    padding: 1rem;
    border-radius: 0.5rem;
}

.info-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.info-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-panel-icon {
    color: var(--info-text);
    font-size: 1.25rem;
}

.info-panel-text {
    font-weight: 500;
    color: var(--info-text);
}

.info-panel-toggle {
    color: var(--info-text);
    background: none;
    border: none;
    cursor: pointer;
}

.info-panel-content {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--info-text);
}

.info-panel-content > * + * {
    margin-top: 0.5rem;
}

.info-panel-list {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.info-panel-list > * + * {
    margin-top: 0.25rem;
}

.info-panel-link {
    color: var(--info-text);
    text-decoration: underline;
}

.info-panel-link:hover {
    color: var(--primary-color-hover);
}

/* Header styles */
.header {
    background: var(--surface);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

/* Navigation styles */
.navigation {
    background: var(--surface);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
    flex-grow: 1;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* FirePhrase navigation link - minimal styling */
.firephrase-nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.firephrase-nav-link:hover {
    color: var(--primary-color);
}

/* Mobile responsive navigation */
@media (max-width: 639px) {
    .navigation {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }
    
    .breadcrumb {
        order: 1;
        text-align: center;
    }
    
    .firephrase-nav-link {
        order: 2;
        text-align: center;
    }
}

/* Card styles */
.card {
    background: var(--surface);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Challenge/Story cards */
.content-card {
    background: var(--surface);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-card-header {
    padding: 1rem;
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.content-card-header:hover {
    background-color: var(--border-color);
}

.content-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.content-card-description {
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.content-card-body {
    padding: 1rem;
}

/* Variant/Section styles */
.variant-container {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
}

.variant-container:last-child {
    margin-bottom: 0;
}

.variant-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

/* Control buttons layout */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .button-group {
        flex-direction: row;
        gap: 0.5rem;
    }
}

.button-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .button-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Button styles */
.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--surface);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.button:hover {
    background: var(--primary-color-hover);
}

.button.primary {
    background: var(--primary-color);
    color: var(--surface);
}

.button.primary:hover {
    background: var(--primary-color-hover);
}

.button.primary:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

.button.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.button.secondary:hover {
    background: var(--border-color);
}

.button.secondary:disabled {
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.button.success {
    background: var(--success-color);
    color: var(--surface);
}

.button.success:hover {
    background: var(--success-color-hover);
}

.button.danger {
    background: var(--error-color);
    color: var(--surface);
}

.button.danger:hover {
    background: var(--error-color-hover);
}

.button.danger:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/* Header-specific button overrides for proper contrast */
.app-header .button {
    background: var(--header-text);
    color: var(--primary-color);
    border: 2px solid var(--header-text);
}

.app-header .button:hover {
    background: var(--header-overlay-hover);
    color: var(--primary-color-hover);
    border-color: var(--header-overlay-hover);
}

.app-header .button.primary {
    background: var(--header-text);
    color: var(--primary-color);
    border: 2px solid var(--header-text);
}

.app-header .button.primary:hover {
    background: var(--header-overlay-hover);
    color: var(--primary-color-hover);
    border-color: var(--header-overlay-hover);
}

.app-header .button.secondary {
    background: transparent;
    color: var(--header-text);
    border: 2px solid var(--header-text-muted);
}

.app-header .button.secondary:hover {
    background: var(--header-overlay);
    border-color: var(--header-text);
}

.app-header .button.success {
    background: var(--success-color);
    color: var(--header-text);
    border: 2px solid var(--success-color);
}

.app-header .button.success:hover {
    background: var(--success-color-hover);
    border-color: var(--success-color-hover);
}

/* Header-specific text styling for better visibility */
.app-header .toggle-label {
    color: var(--header-text);
}

/* Input styles specific to story viewer */
.loop-input {
    width: 4rem;
    padding: 0.25rem 0.5rem;
    color: var(--text-primary);
    background-color: var(--surface);
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

/* Status display */
.status-display {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Answer display */
.answer-display {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
}

.answer-heading {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Prompt display */
.prompt-display {
    margin-top: 0.5rem;
}

.prompt-toggle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.prompt-toggle:hover {
    color: var(--text-primary);
}

.prompt-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: monospace;
    margin-top: 0.5rem;
    resize: vertical;
    background-color: var(--surface);
    color: var(--text-primary);
}

.prompt-copy-btn {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.prompt-copy-btn:hover {
    color: var(--primary-color-hover);
}

/* Story viewer specific styles */
.section-image {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: auto;
}

/* Dialogue styles */
.dialogue-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
}

.dialogue-layout {
    display: block;
}

@media (min-width: 640px) {
    .dialogue-layout {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

.dialogue-content {
    flex-grow: 1;
}

.dialogue-speaker {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.dialogue-text {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease;
    color: var(--text-primary);
}

.dialogue-text:hover {
    background-color: var(--border-color);
}

.dialogue-links {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.dialogue-links a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.15s ease;
    padding: 0 0.125rem;
    border-radius: 0.125rem;
}

.dialogue-links a:hover {
    color: var(--primary-color-hover);
    background-color: var(--info-bg);
}

.dialogue-english {
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.dialogue-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .dialogue-controls {
        margin-top: 0;
    }
}

/* Toggle controls */
.toggle-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--surface);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Copy notification */
.copy-notification {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(28, 25, 23, 0.9);
    color: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 20;
}

/* Section anchor links */
.section-anchor {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem 0.5rem 0 0;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.section-anchor:hover {
    background-color: var(--border-color);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--text-primary);
}

/* Loading message */
.loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 50;
}

.loading-message.hidden {
    display: none;
}

/* Info link */
.info-link {
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.info-link:hover {
    opacity: 1;
}

/* Typography */
h1 {
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-size: 32px;
}

h2 {
    color: var(--text-primary);
    margin-top: 0;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 30px;
}

/* Footer */
footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background-color: var(--surface);
    border-radius: 8px;
}

/* Form elements */
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--surface);
    color: var(--text-primary);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

/* Utility classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-4 { padding: 1rem; }
.rounded { border-radius: 0.25rem; }
.shadow { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.hidden { display: none; }

/* Template-specific styles for non-React pages */
/* Language grid layout */
.language-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 30px;
}

.language-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.language-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.language-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.language-stats {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.language-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--surface);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.language-link:hover {
    background: var(--primary-color-hover);
}

/* Special sections */
.special-section {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.special-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.special-link {
    padding: 10px 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.special-link:hover {
    background: var(--border-color);
}

/* Collection specific styles */
.collection-section {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

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

.collection-card {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.collection-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.collection-stats {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.collection-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.collection-link {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.collection-link.primary {
    background: var(--primary-color);
    color: var(--surface);
}

.collection-link.primary:hover {
    background: var(--primary-color-hover);
}

.collection-link.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.collection-link.secondary:hover {
    background: var(--border-color);
}

/* Collection info panel */
.collection-info {
    background: var(--info-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

/* Story grid and cards */
.story-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.story-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--primary-color);
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.story-number {
    background: var(--primary-color);
    color: var(--surface);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.story-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.story-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.story-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.story-link {
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.story-link.primary {
    background: var(--primary-color);
    color: var(--surface);
}

.story-link.primary:hover {
    background: var(--primary-color-hover);
}

.story-link.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.story-link.secondary:hover {
    background: var(--border-color);
}

/* Info link styling for templates */
.template-info-link {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    background: var(--surface);
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.template-info-link:hover {
    background: var(--info-bg);
}

/* Footer styling */
.page-footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background-color: var(--surface);
    border-radius: 8px;
}

.page-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

/* Body styling for non-React pages */
.template-body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-primary);
}

/* Responsive utilities */
@media (max-width: 639px) {
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* FirePhrase Prominent Footer Bar */
.firephrase-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 12px 20px;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: transform 0.3s ease-in-out;
    min-height: 60px;
    display: flex;
    align-items: center;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.firephrase-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.firephrase-icon {
    font-size: 26px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.firephrase-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 220px;
}

.firephrase-text strong {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.firephrase-text span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.firephrase-button {
    background: #ffffff;
    color: #3b82f6;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    border: 2px solid transparent;
}

.firephrase-button:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: #2563eb;
    border-color: rgba(255, 255, 255, 0.5);
}

.firephrase-button:active {
    transform: translateY(-1px);
}

/* Ensure footer stays above all content */
.firephrase-footer-bar {
    position: fixed !important;
    bottom: 0 !important;
    z-index: 999999 !important;
}

/* Add bottom padding to body when footer bar is present */
.template-body {
    padding-bottom: 100px !important; /* Space for the fixed footer bar */
}

/* Responsive adjustments for mobile */
@media (max-width: 639px) {
    .firephrase-footer-bar {
        padding: 10px 16px;
        min-height: 80px;
    }
    
    .firephrase-content {
        gap: 12px;
        text-align: center;
        justify-content: center;
        flex-direction: column;
    }
    
    .firephrase-text {
        min-width: auto;
        order: 1;
        text-align: center;
    }
    
    .firephrase-icon {
        order: 0;
        font-size: 22px;
    }
    
    .firephrase-button {
        order: 2;
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }
    
    .firephrase-text strong {
        font-size: 17px;
    }
    
    .firephrase-text span {
        font-size: 13px;
    }
    
    .template-body {
        padding-bottom: 120px !important; /* More space on mobile */
    }
} 