/**
 * Caption Writer Frontend Styles
 * DaisyUI Light Theme - Consistent with Instagram Analyzer & Banner blocks
 */

/* Base Container */
.rwp-caption-writer-container {
    font-family: system-ui, -apple-system, sans-serif;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    max-width: 100%;
    margin: 0;
    line-height: 1.5;
    color: #374151;
    container-type: inline-size;
    width: 100%;
    position: relative;
    min-height: 400px;
    padding: 1.5rem;
}

/* Header */
.caption-writer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.caption-writer-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e1e1e;
}

/* Platform Selection */
.platform-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Font Awesome is loaded via PHP wp_enqueue_style() for better reliability */

/* Platform Icons using Font Awesome classes */
.platform-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 16px;
    vertical-align: middle;
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free";
}

/* Use Font Awesome standard class approach */
.platform-icon.instagram::before {
    content: "\f16d";
    font-weight: 400;
}

.platform-icon.tiktok::before {
    content: "\e07b";
    font-weight: 400;
}

.platform-icon.twitter::before {
    content: "\e61b";
    font-weight: 400;
}

.platform-icon.linkedin::before {
    content: "\f08c";
    font-weight: 400;
}

.platform-icon.facebook::before {
    content: "\f09a";
    font-weight: 400;
}

.platform-label {
    color: #1f2937;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.platform-label strong {
    font-weight: 600;
}

.platform-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.platform-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: #f9fafb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.platform-checkbox:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.platform-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background: white;
    cursor: pointer;
    margin: 0;
}

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

.platform-checkbox input[type="checkbox"]:checked + .platform-label-text {
    color: #3b82f6;
    font-weight: 600;
}

/* Active state for checked platform checkboxes */
.platform-checkbox:has(input[type="checkbox"]:checked) {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
}

.platform-icon-label {
    align-items: center;
    display: flex;
    font-size: 14px;
    gap: 6px;
}

/* Platform checkbox with icon styling (used in editor) */
.platform-checkbox-with-icon {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.platform-checkbox-with-icon.is-checked {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
}

.platform-icon-label .platform-name-sr {
    /* Show platform names in the Target Platforms section */
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: 0 !important;
    display: inline !important;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    user-select: none;
}

.platform-label-text {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    user-select: none;
}

/* Legacy platform indicators (kept for backwards compatibility) */
.platform-indicators {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.platform-value {
    font-weight: 500;
    text-transform: capitalize;
    color: #374151;
}

/* Tab Navigation */
.caption-writer-tabs {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    min-width: max-content;
}

.tab-button:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.tab-button.active {
    color: #3b82f6;
    background: white;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px 2px 0 0;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* AI Generator Section */
.ai-generator-section .input-section {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.input-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.content-description {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
    font-family: inherit;
    background: white;
    margin-bottom: 1rem;
}

.content-description:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.content-description::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Tone Selector */
.tone-selector {
    margin-bottom: 1.5rem;
}

.tone-selector select {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tone-selector select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

/* Generate Button */
.generate-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.generate-btn:hover {
    background: #2563eb;
}

.generate-btn:active {
    background: #1d4ed8;
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.generate-btn.loading {
    color: transparent;
}

.generate-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Generated Captions */
.generated-captions-container {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    animation: slideIn 0.4s ease;
}

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

.generated-captions-container h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.captions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.caption-option {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.caption-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.caption-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.caption-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.character-count {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
}

.use-caption-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.use-caption-btn:hover {
    background: #2563eb;
}

/* Template Library */
.template-library-section {
    max-width: 100%;
}

.template-filters {
    margin-bottom: 1.5rem;
}

.template-filters select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 250px;
}

.template-filters select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.template-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.template-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.template-card:hover::before {
    transform: scaleX(1);
}

.template-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.template-category {
    font-size: 0.75rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.template-preview {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.use-template-btn {
    background: white;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.use-template-btn:hover {
    background: #3b82f6;
    color: white;
}

/* Favorites Section */
.favorites-section h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.favorite-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.favorite-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.favorite-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
}

.favorite-meta {
    margin-bottom: 1rem;
}

.favorite-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.favorite-actions {
    display: flex;
    gap: 0.75rem;
}

.use-favorite-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.use-favorite-btn:hover {
    background: #2563eb;
}

.delete-favorite-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-favorite-btn:hover {
    background: #dc2626;
}

.no-favorites {
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: #6b7280;
    font-size: 0.875rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 2px dashed #d1d5db;
}

/* Caption Output */
.caption-output-section {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.caption-output-section label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.final-caption {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: white;
}

.final-caption:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.final-caption::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Character Counter (Multi-platform support) */
.character-counter {
    margin: 0.75rem 0 1.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.current-count {
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    color: #1f2937;
    border: 1px solid #d1d5db;
    min-width: 60px;
    text-align: center;
    transition: all 0.2s ease;
}

.current-count.warning {
    color: #f59e0b;
    background: #fffbeb;
    border-color: #fed7aa;
}

.current-count.over-limit {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
}

.platform-limits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


.platform-limit-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.platform-limit-item[data-over-limit="true"] {
    background: #fef2f2;
    border-color: #fecaca;
}

.platform-limit-item .platform-icon {
    height: 16px;
    width: 16px;
}

/* Keep platform names hidden in character counter section */
.platform-limit-item .platform-name-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    display: none !important;
}

.platform-name {
    color: #6b7280;
    font-weight: 500;
    margin-left: 0.5rem;
}

.over-limit-badge {
    background: #ef4444;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.character-count {
    color: #374151;
    transition: color 0.2s ease;
}

.character-count.warning {
    color: #f59e0b;
}

.character-count.over-limit {
    color: #ef4444;
    font-weight: 600;
}

.character-separator {
    color: #6b7280;
}

.character-limit {
    color: #6b7280;
}

.character-counter .platform-indicator {
    color: #6b7280;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Output Actions */
.output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.login-prompt {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.login-prompt a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Loading and Error States */
.caption-writer-loading {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.caption-writer-loading p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.caption-writer-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Success Notifications */
.caption-writer-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ecfdf5;
    color: #065f46;
    padding: 16px 20px;
    border-radius: 10px;
    border: 2px solid #a7f3d0;
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Quota Info */
.quota-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quota-info strong {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 640px) {
    .rwp-caption-writer-container {
        padding: 1rem;
    }

    .caption-writer-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .caption-writer-header h3 {
        font-size: 1.25rem;
    }
    
    .platform-selection {
        margin-top: 1rem;
    }
    
    .platform-checkboxes {
        gap: 0.5rem;
    }
    
    .platform-checkbox {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    .platform-label-text {
        font-size: 0.75rem;
    }
    
    .platform-limits {
        gap: 0.375rem;
    }
    
    .platform-limit-item {
        padding: 0.375rem;
        font-size: 0.75rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    .ai-generator-section .input-section {
        padding: 1.25rem;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .output-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .btn-secondary {
        justify-content: center;
    }
    
    .character-counter {
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .current-count {
        min-width: 50px;
        font-size: 0.8125rem;
        padding: 0.375rem 0.5rem;
    }
    
    .platform-limits {
        gap: 0.5rem;
    }
    
    .platform-limit-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
    }
}

@container (max-width: 480px) {
    .ai-generator-section .input-section {
        padding: 1rem;
    }
    
    .caption-output-section {
        padding: 1rem;
    }
    
    .generate-btn {
        width: 100%;
    }
    
    .content-description, .final-caption {
        font-size: 0.8125rem;
        padding: 0.75rem;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .template-card {
        padding: 1rem;
    }
}

/* Focus Indicators */
.tab-button:focus-visible,
.generate-btn:focus-visible,
.use-caption-btn:focus-visible,
.use-template-btn:focus-visible,
.use-favorite-btn:focus-visible,
.delete-favorite-btn:focus-visible,
.btn-secondary:focus-visible,
.content-description:focus-visible,
.final-caption:focus-visible,
.tone-selector select:focus-visible,
.template-filters select:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Screen Reader Only Content */
.sr-only,
.platform-name-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    display: none !important;
}

/* Validation Messages */
.validation-message {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    animation: slideIn 0.2s ease;
}

.validation-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.validation-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fed7aa;
}

.validation-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Guest Teaser Interface Styles */
.ai-generator-guest-teaser {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin: 1rem 0;
}

.guest-teaser-content {
    max-width: 600px;
    margin: 0 auto;
}

.guest-teaser-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.guest-teaser-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: white;
    line-height: 1.2;
}

.guest-teaser-content p {
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.5;
}

.guest-teaser-benefits {
    text-align: left;
    margin: 2rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.guest-benefit-item {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.guest-benefit-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.guest-teaser-cta {
    margin-top: 2rem;
}

.guest-cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: white;
    color: #3b82f6;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guest-cta-button:hover {
    background: #f8fafc;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.guest-login-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.4;
}

.guest-login-note a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.guest-login-note a:hover {
    color: #f1f5f9;
}

/* Responsive Guest Teaser */
@media (max-width: 768px) {
    .ai-generator-guest-teaser {
        padding: 2rem 1.5rem;
    }
    
    .guest-teaser-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .guest-teaser-content h3 {
        font-size: 1.5rem;
    }

    .guest-teaser-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .guest-benefit-item {
        font-size: 0.875rem;
        margin: 0.75rem 0;
    }

    .guest-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .guest-teaser-benefits {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ai-generator-guest-teaser {
        padding: 1.5rem 1rem;
    }

    .guest-teaser-icon {
        font-size: 2rem;
    }

    .guest-teaser-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .guest-teaser-content p {
        font-size: 0.9rem;
    }

    .guest-benefit-item {
        font-size: 0.8rem;
    }

    .guest-cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-spinner {
        animation: none;
        border: 3px solid #3b82f6;
    }
}