/* ============================================
   Shido Updates Page Styles
   ============================================ */

/* Header Styles */
.updates-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.updates-header .header-actions {
    flex-shrink: 0;
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-subscribe:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-subscribe.subscribed {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

/* Main Grid Layout */
.updates-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 1024px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }
}

/* Column Styles */
.updates-column {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.column-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.view-all-link {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: var(--primary-bg);
}

.view-all-link:hover {
    color: var(--primary-hover);
    background: rgba(99, 102, 241, 0.2);
}

/* Releases List */
.releases-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.releases-loading,
.requests-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.releases-empty,
.requests-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    text-align: center;
}

.releases-empty i,
.requests-empty i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Release Card */
.release-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: all 0.2s ease;
}

.release-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.release-card:last-child {
    margin-bottom: 0;
}

/* Unread Release Card Indicator */
.release-card.unread {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
}

.release-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: unreadPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes unreadPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}



/* Timeline Icon */
.release-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.release-icon.feature {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.release-icon.bugfix {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.release-icon.improvement {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.release-icon.security {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.release-icon.announcement {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.release-icon i {
    width: 18px;
    height: 18px;
}

/* Release Content */
.release-content {
    flex: 1;
    min-width: 0;
}

.release-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.release-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.release-description {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.6;
}

.release-description ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.release-description li {
    margin-bottom: 0.25rem;
}

/* Requests Column */
.requests-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Request Card */
.request-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.request-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Vote Button */
.vote-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 48px;
}

.vote-button:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.vote-button.voted {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.vote-button i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.vote-button.voted i,
.vote-button:hover i {
    color: var(--primary);
}

.vote-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.vote-button.voted .vote-count {
    color: var(--primary);
}

/* Request Content */
.request-content {
    flex: 1;
    min-width: 0;
}

.request-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.request-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.category-badge.core {
    background: var(--primary-bg);
    color: var(--primary);
}

.category-badge.integration {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.category-badge.infrastructure {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.category-badge.security {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.category-badge.analytics {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.category-badge.ui\/ux {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

/* Submit Idea Button */
.btn-submit-idea {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-submit-idea:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ============================================
   Modal Styles
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #1a1b2e;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
}

/* Form Buttons */
.btn-secondary {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.btn-primary {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Idea Modal */
.idea-modal-content {
    max-width: 480px;
}

.idea-modal-content .form-group {
    margin-bottom: 1rem;
}

.idea-modal-content label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.idea-modal-content input,
.idea-modal-content textarea,
.idea-modal-content select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    color: #1a1b2e;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.idea-modal-content input::placeholder,
.idea-modal-content textarea::placeholder {
    color: #9ca3af;
}

.idea-modal-content input:focus,
.idea-modal-content textarea:focus,
.idea-modal-content select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.idea-modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.idea-modal-content .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}



/* Responsive */
@media (max-width: 768px) {
    .updates-header .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .updates-header .header-actions {
        width: 100%;
    }

    .btn-subscribe {
        width: 100%;
        justify-content: center;
    }

    .updates-column {
        padding: 1rem;
    }

    .release-card {
        padding: 1rem 0;
    }
}

/* Light Theme Overrides */
[data-theme="light"] .updates-column {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}