/* =====================================================
   PATCH NOTES & SUGGESTIONS STYLES
   ===================================================== */

/* =====================================================
   PATCH NOTES MODAL
   ===================================================== */
.patch-notes-modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.patch-notes-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(200, 170, 110, 0.15) 0%, rgba(200, 170, 110, 0.05) 100%);
}

.patch-notes-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #C8AA6E 0%, #8B7355 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patch-notes-icon i {
    font-size: 28px;
    color: #0f1419;
}

.patch-notes-header h2 {
    color: #F0E6D2;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.patch-notes-subtitle {
    color: #A09B8C;
    font-size: 0.9rem;
}

.current-version {
    display: inline-block;
    background: rgba(200, 170, 110, 0.2);
    color: #C8AA6E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 600;
}

.patch-notes-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

#patchNotesList {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.patch-note-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.patch-note-item:hover {
    border-color: rgba(200, 170, 110, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.patch-note-item.latest {
    border-color: rgba(200, 170, 110, 0.5);
    background: linear-gradient(135deg, rgba(200, 170, 110, 0.1) 0%, rgba(200, 170, 110, 0.02) 100%);
}

.patch-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.patch-version-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.patch-version {
    font-weight: 700;
    color: #C8AA6E;
    font-size: 1.1rem;
}

.patch-latest-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.patch-date {
    color: #A09B8C;
    font-size: 0.85rem;
}

.patch-title {
    color: #F0E6D2;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.patch-changes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.change-category {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.change-category.added {
    border-left: 3px solid #4CAF50;
}

.change-category.fixed {
    border-left: 3px solid #FF9800;
}

.change-category.improved {
    border-left: 3px solid #2196F3;
}

.change-category.removed {
    border-left: 3px solid #f44336;
}

.change-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.change-category.added .change-label {
    color: #4CAF50;
}

.change-category.fixed .change-label {
    color: #FF9800;
}

.change-category.improved .change-label {
    color: #2196F3;
}

.change-category.removed .change-label {
    color: #f44336;
}

.change-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.change-list li {
    color: #A09B8C;
    font-size: 0.9rem;
    padding: 4px 0 4px 20px;
    position: relative;
}

.change-list li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: #C8AA6E;
}

/* =====================================================
   SUGGESTIONS MODAL
   ===================================================== */
.suggestions-modal-content {
    max-width: 650px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.suggestions-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.05) 100%);
}

.suggestions-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestions-icon i {
    font-size: 28px;
    color: white;
}

.suggestions-header h2 {
    color: #F0E6D2;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.suggestions-subtitle {
    color: #A09B8C;
    font-size: 0.9rem;
}

.suggestions-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Form Styles */
.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.suggestion-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggestion-field label {
    color: #F0E6D2;
    font-size: 0.9rem;
    font-weight: 600;
}

.suggestion-select,
.suggestion-input,
.suggestion-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    color: #F0E6D2;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.suggestion-select:focus,
.suggestion-input:focus,
.suggestion-textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.suggestion-select option {
    background: #1a1f36;
    color: #F0E6D2;
}

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

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: #A09B8C;
}

.submit-suggestion-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-suggestion-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.submit-suggestion-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-suggestion-btn i.ti-loader {
    animation: spin 1s linear infinite;
}

/* Status Message */
.suggestion-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 12px;
}

.suggestion-status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4CAF50;
}

.suggestion-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
}

/* My Suggestions Section */
.my-suggestions-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.my-suggestions-section h3 {
    color: #F0E6D2;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-suggestions-section h3 i {
    color: #C8AA6E;
}

#mySuggestionsList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-suggestions {
    color: #A09B8C;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.suggestion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
}

.suggestion-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.suggestion-category-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.suggestion-category-badge.new_feature {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.suggestion-category-badge.game_mode {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
}

.suggestion-category-badge.improvement {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.suggestion-category-badge.ui_ux {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.suggestion-category-badge.bug_fix {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.suggestion-category-badge.other {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.suggestion-status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.suggestion-status-badge.pending {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.suggestion-status-badge.reviewing {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.suggestion-status-badge.planned {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.suggestion-status-badge.in_progress {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
}

.suggestion-status-badge.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.suggestion-status-badge.rejected {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.suggestion-item-title {
    color: #F0E6D2;
    font-size: 1rem;
    margin-bottom: 6px;
}

.suggestion-item-description {
    color: #A09B8C;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-item-date {
    color: #666;
    font-size: 0.75rem;
}

/* =====================================================
   MENU ITEMS STYLES
   ===================================================== */
.menu-grid-item-patch-notes,
.menu-grid-item-suggestions {
    position: relative;
}

.version-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(200, 170, 110, 0.3);
    color: #C8AA6E;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 600px) {
    .patch-notes-modal-content,
    .suggestions-modal-content {
        max-height: 90vh;
        width: 95%;
    }

    .patch-notes-header,
    .suggestions-header {
        padding: 16px;
    }

    .patch-notes-body,
    .suggestions-body {
        padding: 16px;
    }

    .patch-note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .suggestion-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
