/* Feedlizer App Styles v0.7.1 - Bug fixes for duplicates and UI stability */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --accent-primary: #007AFF;
    --accent-success: #34C759;
    --accent-warning: #FF9500;
    --accent-danger: #FF3B30;
    --border-color: #333333;
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 16px;
    --card-width: min(400px, 90vw);
    --card-height: min(600px, 75vh);
    --header-height: 80px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Force minimum font size on mobile */
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* App Layout */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.version {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: -2px;
    font-weight: 400;
}

.stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-screen p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Error Screen */
.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Error Screen */
.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Login Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    color: var(--text);
    text-align: center;
    font-size: 1.5rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
}

.modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-content button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-content button:hover {
    background: rgba(139, 69, 19, 0.8);
    transform: translateY(-1px);
}

.login-info {
    margin: 0.5rem 0 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
}

.error-content {
    text-align: center;
    padding: 2rem;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.retry-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 2rem) 1rem 2rem;
    min-height: 100vh;
}

/* Card Stack */
.card-stack {
    position: relative;
    width: var(--card-width);
    height: var(--card-height);
    margin-bottom: 2rem;
}

.article-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer; /* Changed from grab to pointer to indicate clickability */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    user-select: none;
}

.article-card:active {
    cursor: grabbing;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-primary);
}

.article-card.dragging {
    z-index: 10;
    transform: scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--shadow-light);
}

.article-card.swiped-up {
    animation: swipeUp 0.5s ease-in-out forwards;
}

.article-card.swiped-down {
    animation: swipeDown 0.5s ease-in-out forwards;
}

.article-card.swiped-left {
    animation: swipeLeft 0.5s ease-in-out forwards;
}

@keyframes swipeUp {
    to {
        transform: translateY(-150%) rotate(15deg);
        opacity: 0;
    }
}

@keyframes swipeDown {
    to {
        transform: translateY(150%) rotate(-15deg);
        opacity: 0;
    }
}

@keyframes swipeLeft {
    to {
        transform: translateX(-150%) rotate(-30deg);
        opacity: 0;
    }
}

/* Card Background Image */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    transition: filter 0.3s ease;
}

.article-card:hover .card-background {
    filter: brightness(0.4);
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    padding: 2rem;
}

.card-meta {
    margin-top: auto;
}

.article-source {
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.open-article-btn {
    background: rgba(0, 122, 255, 0.2);
    border: 1px solid rgba(0, 122, 255, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
}

.open-article-btn:hover {
    background: rgba(0, 122, 255, 0.3);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem; /* Reduced from 2rem to make space for footer */
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::before {
    opacity: 0.1;
}

.action-btn:active {
    transform: scale(0.95);
}

.back-btn {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.back-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.read-btn {
    color: var(--accent-success);
    border-color: var(--accent-success);
}

.read-btn:hover {
    box-shadow: 0 10px 25px rgba(52, 199, 89, 0.3);
}

.save-btn {
    color: var(--accent-warning);
    border-color: var(--accent-warning);
}

.save-btn:hover {
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3);
}

.refresh-btn {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.refresh-btn:hover {
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3);
}

.refresh-btn:active {
    transform: scale(0.95) rotate(180deg);
}

.load-more-btn {
    color: var(--accent-warning);
    border-color: var(--accent-warning);
}

.load-more-btn:hover {
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3);
}

.load-more-btn:active {
    transform: scale(0.95) translateY(2px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Instructions */
.instructions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0.7;
}

.instruction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.desc {
    color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    min-width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    animation: slideInToast 0.3s ease-out forwards;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.toast.removing {
    animation: slideOutToast 0.3s ease-out forwards;
}

@keyframes slideInToast {
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToast {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.success {
    border-left: 4px solid var(--accent-success);
}

.toast.error {
    border-left: 4px solid var(--accent-danger);
}

.toast.info {
    border-left: 4px solid var(--accent-primary);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    animation: toastSlideIn 0.3s ease forwards;
    pointer-events: auto;
    max-width: 300px;
}

.toast.success {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.1);
}

.toast.error {
    border-color: rgba(244, 67, 54, 0.5);
    background: rgba(244, 67, 54, 0.1);
}

.toast.info {
    border-color: rgba(33, 150, 243, 0.5);
    background: rgba(33, 150, 243, 0.1);
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

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

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

/* Main container adjustments - no footer needed */
.main {
    padding-bottom: 20px; /* Reduced padding */
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.login-btn {
    background: linear-gradient(135deg, var(--accent-primary), #0066CC);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #ff6b6b;
    font-size: 0.9rem;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login-footer .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --card-width: min(350px, 90vw);
        --card-height: min(550px, 70vh);
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .main {
        padding: calc(var(--header-height) + 1rem) 0.5rem 1rem;
    }
    
    .action-buttons {
        gap: 1rem;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
    }
    
    .instructions {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .toast {
        min-width: 250px;
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --card-width: min(320px, 95vw);
        --card-height: min(500px, 65vh);
        --header-height: 70px;
    }
    
    html {
        font-size: 16px !important;
    }
    
    body {
        font-size: 16px !important;
        -webkit-text-size-adjust: none !important;
    }
    
    .header {
        height: var(--header-height);
    }
    
    .main {
        padding-top: calc(var(--header-height) + 1rem);
        min-height: calc(100vh - var(--header-height));
    }
    
    .instructions {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .instruction {
        font-size: 0.85rem;
    }
    
    .action-buttons {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    :root {
        --card-width: min(300px, 98vw);
        --card-height: min(450px, 60vh);
    }
    
    .header-content h1 {
        font-size: 1.2rem;
    }
    
    .version {
        font-size: 0.7rem;
    }
    
    .action-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-btn {
        width: 45px;
        height: 45px;
    }
}

/* mateoNEWS Generator Styles */
.news-generator-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.news-generator-modal.hidden {
    display: none;
}

.news-generator-content {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.news-generator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-generator-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.news-generator-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.news-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

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

.background-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.bg-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bg-option:hover {
    border-color: var(--accent-primary);
}

.bg-option.selected {
    border-color: var(--accent-success);
    background: rgba(52, 199, 89, 0.1);
}

.bg-option img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.bg-option span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.generate-btn,
.download-btn,
.copy-btn,
.instagram-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.generate-btn {
    background: var(--accent-primary);
    color: white;
}

.generate-btn:hover:not(:disabled) {
    background: #0056CC;
}

.copy-btn {
    background: var(--accent-warning);
    color: white;
}

.copy-btn:hover:not(:disabled) {
    background: #CC7A00;
}

.download-btn {
    background: var(--accent-success);
    color: white;
}

.download-btn:disabled,
.instagram-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.download-btn:hover:not(:disabled) {
    background: #2AAE4F;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.instagram-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.3);
}

.news-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#newsCanvas {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    max-height: 60vh;
}

.news-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Responsive adjustments for news generator */
@media (max-width: 768px) {
    .news-generator-body {
        grid-template-columns: 1fr;
    }
    
    .background-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
    }
}
