/* nft-modal.css */
.nft-modal {
    background: rgba(13, 13, 16, 0.7);
    backdrop-filter: blur(3px);
}

.nft-modal .filter-modal-content {
    background: var(--surface-dark);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
    border-bottom: none;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.nft-modal .filter-modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* NFT Header - фон с самого верха */
.nft-header {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: linear-gradient(135deg, #2a7fff20 0%, #00d4aa20 100%);
    padding: 40px 20px 20px;
    position: relative;
    min-height: 200px;
}

/* Маленький крестик */
.nft-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.nft-preview {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-preview-icon {
    font-size: 3.5em;
}

.nft-title {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Кнопки действий на том же фоне */
.nft-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nft-action-btn {
    flex: 1;
    max-width: 140px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.action-icon {
    font-size: 1.3em;
}

/* Информация - таблица 2 равных столбца с тонкими столбцами */
.nft-info-section {
    background: var(--surface-dark);
    padding: 20px;
    flex: 1;
}

.nft-info-table {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 1px;
    background: rgba(68, 68, 76, 0.6);
    border: 1px solid rgba(68, 68, 76, 0.6);
    border-radius: 12px;
    overflow: hidden;
}

.nft-info-row {
    display: contents;
}

.nft-info-label {
    background: var(--surface);
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

.nft-info-value {
    background: var(--surface);
    padding: 14px 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95em;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Выравнивание по правому краю */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Стили для значения редкости */
.rarity-value {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
}

.rarity-legendary { 
    background: rgba(255, 215, 0, 0.15); 
    color: #FFD700; 
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.rarity-epic { 
    background: rgba(147, 112, 219, 0.15); 
    color: #9370DB; 
    border: 1px solid rgba(147, 112, 219, 0.3);
}
.rarity-rare { 
    background: rgba(65, 105, 225, 0.15); 
    color: #4169E1; 
    border: 1px solid rgba(65, 105, 225, 0.3);
}
.rarity-common { 
    background: rgba(128, 128, 128, 0.15); 
    color: #A9A9A9; 
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.nft-modal .modal-footer {
    padding: 20px;
    display: flex;
    gap: 12px;
    padding: 10px 20px 10px 20px;
}

/* Кнопка OK обратно к оригинальному стилю */
.nft-modal .filter-modal-apply {
    width: 100%;
    padding: 14px;
    background: var(--primary); /* Оригинальный синий цвет */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nft-modal .filter-modal-apply:active {
    background: var(--primary-dark);
}

@media (max-width: 480px) {
    .nft-header {
        padding: 35px 15px 15px;
        min-height: 180px;
    }
    
    .nft-preview {
        width: 80px;
        height: 80px;
    }
    
    .nft-preview-icon {
        font-size: 3em;
    }
    
    .nft-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .nft-action-btn {
        padding: 10px;
        max-width: 120px;
    }
    
    .nft-info-label,
    .nft-info-value {
        padding: 12px 14px;
        font-size: 0.85em;
    }
}